mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2025-01-03 17:35:32 +00:00
CoreAudio: fix build
This commit is contained in:
parent
a6c5f99b27
commit
753673b194
|
@ -857,7 +857,7 @@ static OSStatus write_callback_ca(void *userdata, AudioUnitRenderActionFlags *io
|
||||||
|
|
||||||
osca->io_data = io_data;
|
osca->io_data = io_data;
|
||||||
osca->buffer_index = 0;
|
osca->buffer_index = 0;
|
||||||
osca->frames_left = osca->callback_frames;
|
osca->frames_left = in_number_frames;
|
||||||
outstream->write_callback(outstream, osca->frames_left, osca->frames_left);
|
outstream->write_callback(outstream, osca->frames_left, osca->frames_left);
|
||||||
osca->io_data = nullptr;
|
osca->io_data = nullptr;
|
||||||
|
|
||||||
|
@ -957,7 +957,7 @@ static int outstream_begin_write_ca(struct SoundIoPrivate *si, struct SoundIoOut
|
||||||
SoundIoOutStream *outstream = &os->pub;
|
SoundIoOutStream *outstream = &os->pub;
|
||||||
SoundIoOutStreamCoreAudio *osca = &os->backend_data.coreaudio;
|
SoundIoOutStreamCoreAudio *osca = &os->backend_data.coreaudio;
|
||||||
|
|
||||||
if (osca->buffer_index >= ocsa->io_data->mNumberBuffers)
|
if (osca->buffer_index >= osca->io_data->mNumberBuffers)
|
||||||
return SoundIoErrorInvalid;
|
return SoundIoErrorInvalid;
|
||||||
|
|
||||||
if (*frame_count != osca->frames_left)
|
if (*frame_count != osca->frames_left)
|
||||||
|
|
Loading…
Reference in a new issue