output/osx: change type to std::size_t to fix -Wc++11-narrowing

This commit is contained in:
Max Kellermann 2023-01-23 14:06:51 +01:00
parent c6eac285ea
commit ff8a7225fc

View File

@ -627,7 +627,7 @@ osx_render(void *vdata,
{ {
OSXOutput *od = (OSXOutput *) vdata; OSXOutput *od = (OSXOutput *) vdata;
int count = in_number_frames * od->asbd.mBytesPerFrame; std::size_t count = in_number_frames * od->asbd.mBytesPerFrame;
buffer_list->mBuffers[0].mDataByteSize = buffer_list->mBuffers[0].mDataByteSize =
od->ring_buffer.ReadTo({(std::byte *)buffer_list->mBuffers[0].mData, count}); od->ring_buffer.ReadTo({(std::byte *)buffer_list->mBuffers[0].mData, count});
return noErr; return noErr;