pcmprint

CLI PCM visualiser
git clone git://nsmpr.xyz/pcmprint.git
Log | Files | Refs | README

commit a66502779fef98fdb77d7a2b1624c7857409eb06
parent c964589bb52c9609c86b68c880172345f8df11d7
Author: zavok <an2qzavok@gmail.com>
Date:   Thu, 21 Mar 2019 00:41:27 +0300

some fixes, started manpage

Diffstat:
Mpcmprint.c | 2+-
Apcmprint.mdoc | 20++++++++++++++++++++
2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/pcmprint.c b/pcmprint.c @@ -5,7 +5,7 @@ #include <fcntl.h> static int BLKSIZE = 1024; -static int CHLEN = 32; +static int CHLEN = 33; char *intens = "`@"; static void diff --git a/pcmprint.mdoc b/pcmprint.mdoc @@ -0,0 +1,20 @@ +.Dd $Mdocdate: March 20 2019 $ +.Dt PCMPRINT 1 +.Os +.Sh NAME +.Nm pcmprint +.Nd prints PCM data into stdout +.Sh SYNOPSIS +.Nm pcmprint +.Op Fl b Ar blocksize +.Op Fl w Ar width +.Op Ar file +.Sh DESCRIPTION +.Nm +reads input (either stdin or file, if specified) and prints to stdout lines visualising the signal. +Input data is assumed to be RAW PCM, signed, 16-bit, little-endian, stereo, with sampling rate of 44100 Hz. +.Sh OPTIONS +.Bl -tag -width Ds +.It Fl b Ar blocksize +specifies size of the block to operate on. +Size of the block is assumed to be in sampling frames, 4 bytes per frame.