andrewrk / libsoundio

C library for cross-platform real-time audio input and output
http://libsound.io/
MIT License
1.9k stars 230 forks source link

Is there some guarantee for the frame_count_max coming into outstream->write_callback? #262

Open mavavilj opened 2 years ago

mavavilj commented 2 years ago

I'm learning libsoundio and I was wondering what sized frames can I expect to come into the write_callback portion of a SoundIoOutStream? And if this leads to having to make some adjustments in such callback in order to provide continuous signals?

mavavilj commented 2 years ago

I was also a bit confused regarding the sizes that come into that function. At sample rate of 48000hz I see numbers like:

Output device: Built-in Audio Analog Stereo 96000 88136 61200 61520 72080 72080 72080 72120 72120 72120 ...