Commit f881917d authored by Yue Wang's avatar Yue Wang Committed by GitHub

Fix a bug that buffer_frame_size is not properly initialized

parent 99244f51
...@@ -710,7 +710,7 @@ osx_output_open(AudioOutput *ao, AudioFormat &audio_format, ...@@ -710,7 +710,7 @@ osx_output_open(AudioOutput *ao, AudioFormat &audio_format,
return false; return false;
} }
UInt32 buffer_frame_size; UInt32 buffer_frame_size = 1;
status = osx_output_set_buffer_size(od->au, od->asbd, &buffer_frame_size); status = osx_output_set_buffer_size(od->au, od->asbd, &buffer_frame_size);
if (status != noErr) { if (status != noErr) {
osx_os_status_to_cstring(status, errormsg, sizeof(errormsg)); osx_os_status_to_cstring(status, errormsg, sizeof(errormsg));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment