multi_audio_test: Continue if getting buffers failed.

Don't try and read the buffers anyway, that'll lead to a page fault.
This commit is contained in:
Augustin Cavalier 2019-07-13 22:34:54 -04:00
parent d5a29ba97c
commit b3c896af1b

View File

@ -377,6 +377,7 @@ do_play(int argc, char** argv)
if (ioctl(sDevice, B_MULTI_BUFFER_EXCHANGE, &bufferInfo,
sizeof(multi_buffer_list)) < B_OK) {
printf("Getting buffers failed: %s\n", strerror(errno));
continue;
}
// fill buffer with data