[oss-devel] New to OSS

Rizwan Khan rizwaan at gmail.com
Wed Jun 27 18:28:40 EEST 2007


Hello

I am new to OSS and needs your expert advise.
I want to prototype a linux based sound recorder using OSS which has
this type of interface methods.

SRecorder...

   bool Open(... device, samplerate, channels...);
   void Start();
   bool WaitForDataAndRead(LThread& Interface, int16_t* Buffer);
   void Stop();
   samplecount_t FlushData(int16_t* Buffer);
   void Close();
I want that audio should be 16 bit PCM.

At the moment, I am following this exacmple program and started with:
http://manuals.opensound.com/developer/audiolevel.c.html

in this program i am concerned about:
(a) What is the blocking mode (does read block)
     - if blocking how do we determine the number of samples ready
(b) Is close missing there?
(c) Did this work?

Also - how what devices are possible as the input to this program. And
how its map from device name back to device?

Any advise!!!

Thanks


More information about the oss-devel mailing list