summaryrefslogtreecommitdiff
path: root/src/audio_core/sink
diff options
context:
space:
mode:
authorGravatar Liam2022-11-21 11:31:18 -0500
committerGravatar Liam2022-11-22 22:22:28 -0500
commit9737615948d431cf56826f3c109bbc0fef7b4d10 (patch)
tree9d4742bf8f2b64b9a5b30ae33b105a5e9344ab3b /src/audio_core/sink
parentMerge pull request #9279 from liamwhite/this-would-have-never-happened-in-rust (diff)
downloadyuzu-9737615948d431cf56826f3c109bbc0fef7b4d10.tar.gz
yuzu-9737615948d431cf56826f3c109bbc0fef7b4d10.tar.xz
yuzu-9737615948d431cf56826f3c109bbc0fef7b4d10.zip
general: fix compile for Apple Clang
Diffstat (limited to 'src/audio_core/sink')
-rw-r--r--src/audio_core/sink/sink_stream.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/audio_core/sink/sink_stream.cpp b/src/audio_core/sink/sink_stream.cpp
index 849f862b0..e3d060f11 100644
--- a/src/audio_core/sink/sink_stream.cpp
+++ b/src/audio_core/sink/sink_stream.cpp
@@ -170,8 +170,8 @@ void SinkStream::ProcessAudioIn(std::span<const s16> input_buffer, std::size_t n
170 170
171 // Get the minimum frames available between the currently playing buffer, and the 171 // Get the minimum frames available between the currently playing buffer, and the
172 // amount we have left to fill 172 // amount we have left to fill
173 size_t frames_available{std::min(playing_buffer.frames - playing_buffer.frames_played, 173 size_t frames_available{std::min<u64>(playing_buffer.frames - playing_buffer.frames_played,
174 num_frames - frames_written)}; 174 num_frames - frames_written)};
175 175
176 samples_buffer.Push(&input_buffer[frames_written * frame_size], 176 samples_buffer.Push(&input_buffer[frames_written * frame_size],
177 frames_available * frame_size); 177 frames_available * frame_size);
@@ -241,8 +241,8 @@ void SinkStream::ProcessAudioOutAndRender(std::span<s16> output_buffer, std::siz
241 241
242 // Get the minimum frames available between the currently playing buffer, and the 242 // Get the minimum frames available between the currently playing buffer, and the
243 // amount we have left to fill 243 // amount we have left to fill
244 size_t frames_available{std::min(playing_buffer.frames - playing_buffer.frames_played, 244 size_t frames_available{std::min<u64>(playing_buffer.frames - playing_buffer.frames_played,
245 num_frames - frames_written)}; 245 num_frames - frames_written)};
246 246
247 samples_buffer.Pop(&output_buffer[frames_written * frame_size], 247 samples_buffer.Pop(&output_buffer[frames_written * frame_size],
248 frames_available * frame_size); 248 frames_available * frame_size);