Hello everybody !
For my work, I have to develop a software which can read a WAV file and save into RAW files float 32 bits samples from 8 microphones.
The way I do things is the following : the WAV file is read with a AudioTransportSource class. The record is done using the writeFloat function in each call of the AudioDeviceIOCallback, with a loop on the “numSamples” samples for each channel.
Problem : with a low latency, I have too much cracks, on the file which is played. So, I’d like to know what is the “right” way to do that. Should I play the file in a separate thread ? Should I access to the disk with differents ways, with an intermediate buffer ?
Thanks for your answers !