Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

OfSoundStream - get buffer length from device

$
0
0

@Daniel_Bennett wrote:

Hi,
is it possible to retrieve the settings (buffer, sample rate etc.) from the audio device?

the audio examples in OF show buffer length defined ahead of time, hard coded in the program. I had been working this way and it worked fine until I changed my ASIO driver today.

I have a audio-event timing things running in the audio thread, and now if my ASIO driver is not set to the same buffer length I hard-coded in the program, audio events either speed up or slow down - presumably because the device is not using the buffer length requested by OF.

I have reasons to want to use this new driver, so is it possible to retrieve the settings (buffer, sample rate etc.) from the device so I can set the buffer length correctly on startup and make sure my audio event timing is correct regardless of the device's buffer length?

Thanks

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles