AudioInputStream: is there data loss?
Hi all!
I'm using AudioInputStream to record an audiostream from the uplink and I have a doubt:
I've made my own function "Record" in a class Engine (derived from MMdaAudioInputStreamCallback to implement the callbacks) and in Record I call the function ReadL(firstBuffer) on a CAudioInputStream object;
then in MaiscBufferCopied I call the next ReadL(nextBuffer) in which audio data will be stored when the privious buffer is full.
my doubt is: am I sure that there is no data loss while the system switch between the two buffers (the filled one and the next to be filled)?
Whoever can guarantee me there is no data loss, thanks a lot mate!
Re: AudioInputStream: is there data loss?
There is an intermediate buffer (the hardware does not write data directly in your buffer), thus you can expect no loss of data if you re-invoke ReadL in a reasonable time.
Re: AudioInputStream: is there data loss?
thanks very much wizard_hu_! this is exactly the answer I needed