Fix a bug that buffer_frame_size is not properly initialized

This commit is contained in:
Yue Wang 2016-09-18 21:09:57 -07:00 committed by GitHub
parent 99244f51b0
commit f881917d2f

View File

@ -710,7 +710,7 @@ osx_output_open(AudioOutput *ao, AudioFormat &audio_format,
return false;
}
UInt32 buffer_frame_size;
UInt32 buffer_frame_size = 1;
status = osx_output_set_buffer_size(od->au, od->asbd, &buffer_frame_size);
if (status != noErr) {
osx_os_status_to_cstring(status, errormsg, sizeof(errormsg));