PlayRec for OS/2 by Carsten Arnold
Version 0.14
eMail:  C.Arnold@Transnet.de
URL:    http://home.t-online.de/home/C.Arnold

This program is freeware.

The program can recording and playing very big wave files directyl from/to HD.
Its required dart.

Syntax:
PlayRec [Options] filename
or 
PlayRec filename [Options]

If filename is "con", then streaming is enabled.
The program provide data to stdout in raw PCM, so it can used by lame.
e.g.
playrec con /r /f:22050 | lamepcm -r -s 22.05 -m s - test.mp3

Note, use lamepcm. lame (whithout "pcm") do not work for this.

I have tested whith lame version 3.57.

/h or /?  displays this text
/r        recording (default is playing)
/8        8 bit recording (default is 16), implicate /r
/f:n      frequency (2000hz up to 48000 hz, default=44100), implicate /r
/u        uLaw (8 bits), implicate /r
/a        aLaw (8 bits), implicate /r
/m        mono (default is stereo), implicate /r
/d        IMA ADPCM hardware compression (16 bits; 4:1), implicate /r
/b:n      buffersize in bytes (default is 8192)
          if recording with /sp, /b:n shold not be used
/i:x      device number, default=0
/st:n     if recording the clock time where the recording started
          if playing the start time of file where the file played
/et:n     if recording the clock time where the recording ended
          if playing the end time of file where the file played
/ct:n     if recording the duration of recording
          if playing the duration of playing
/sp       show level, implicate /r\n" );
/np:n     noise level to recording in promille (0-1000, default=0), implicate /r\n" );
/t:n      trailing time in ms, used if /np:n > 0 (default is 200 ms), implicate /r\n" );
          if /np:n > 0 recording stopped while real noise level < /np:n\n" );
/end      program ended if trailing time elapsed\n" );
/src:x    audio source, where x can be line, mic or cd, default is line\n" );
          xmp: /src:line\n" );

times can be specified as hh:mm:ss.ms or ss.ms

example:
PlayRec /r test.wav /st:20:00:00 /et:22:00:00

record test.wav whith 44100 hz, 16 bit, stereo
recording started at 20:00 and ended at 22:00 


PlayRec test.wav /st:1:00:00

play test.wav at file time 1:00:00 until file ends

examples of times:

1:00:00     3600   seconds or  1:00:00 am
   1:00       60   seconds or  0:01:00 am  
      1        1   second  or  0:00:01 am

1:00:00.3   3600.3 seconds or  1:00:00.3 am
   1:00.3     60.3 seconds or  0:01:00.3 am
      1.3      1.3 seconds or  0:00:01.3 am


