improper buffer size calculation in CoreAudio implementation
John Nelson reported this error to the list in 2009.
http://music.columbia.edu/pipermail/portaudio/2009-November/009587.html
John writes:
pa_mac_core_utilities.c if a frame buffer size
(requestedFramesPerBuffer) exceeds that allowed by the kernel
driver, portaudio attempts to use the maximum allowed value. It
fails because of the use of a deprecated argument option in the calls
to AudioDeviceGetPropertyInfo and AudioDeviceGetProperty.
Instead of using the option:
kAudioDevicePropertyBufferSizeRange you should use
kAudioDevicePropertyBufferFrameSizeRange and then you get correct
values for the minimum and maximum allowed values of the frame buffer
size.
http://music.columbia.edu/pipermail/portaudio/2009-November/009587.html
John writes:
pa_mac_core_utilities.c if a frame buffer size
(requestedFramesPerBuffer) exceeds that allowed by the kernel
driver, portaudio attempts to use the maximum allowed value. It
fails because of the use of a deprecated argument option in the calls
to AudioDeviceGetPropertyInfo and AudioDeviceGetProperty.
Instead of using the option:
kAudioDevicePropertyBufferSizeRange you should use
kAudioDevicePropertyBufferFrameSizeRange and then you get correct
values for the minimum and maximum allowed values of the frame buffer
size.
Leave a comment