1
Audio / Re: sf::SoundStream onGetData()
« on: May 08, 2014, 12:28:40 pm »
The delay is not an issue . Even 250-300ms are fine in my case , I'm coding a standalone synthesizer/wave generator by the way .
When it's generating sounds in real-time ( instead writing them to a file ) , every time a chunk is popped from a queue and passed to the internal AL queue, I get "missing" part of a waveform.Not cutted or anything just audiable flat line for 1-2ms so I asked the question to understand if the problem is in my code or the speed of which the internal queue is filling.
And the pipeline :
Create chunk of N samples -> write a sine/whatever wave -> push in queue -> pop from queue -> pass to .data
( main thread ; SoundStream thread )
When it's generating sounds in real-time ( instead writing them to a file ) , every time a chunk is popped from a queue and passed to the internal AL queue, I get "missing" part of a waveform.Not cutted or anything just audiable flat line for 1-2ms so I asked the question to understand if the problem is in my code or the speed of which the internal queue is filling.
And the pipeline :
Create chunk of N samples -> write a sine/whatever wave -> push in queue -> pop from queue -> pass to .data
( main thread ; SoundStream thread )