summaryrefslogtreecommitdiffstats
path: root/src/audio_core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-02-25 15:28:48 +0100
committerLioncash <mathew1800@gmail.com>2019-02-25 15:28:51 +0100
commit7cdeec20ec5542925e8a35943604857072796832 (patch)
treea4993ad0aaf8fb1bc0cd484bebe38e4072380c2e /src/audio_core
parentaudio_core/codec: Resolve truncation warnings within DecodeADPCM (diff)
downloadyuzu-7cdeec20ec5542925e8a35943604857072796832.tar
yuzu-7cdeec20ec5542925e8a35943604857072796832.tar.gz
yuzu-7cdeec20ec5542925e8a35943604857072796832.tar.bz2
yuzu-7cdeec20ec5542925e8a35943604857072796832.tar.lz
yuzu-7cdeec20ec5542925e8a35943604857072796832.tar.xz
yuzu-7cdeec20ec5542925e8a35943604857072796832.tar.zst
yuzu-7cdeec20ec5542925e8a35943604857072796832.zip
Diffstat (limited to 'src/audio_core')
-rw-r--r--src/audio_core/cubeb_sink.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/cubeb_sink.cpp b/src/audio_core/cubeb_sink.cpp
index 097328901..3c2208b46 100644
--- a/src/audio_core/cubeb_sink.cpp
+++ b/src/audio_core/cubeb_sink.cpp
@@ -75,11 +75,11 @@ public:
queue.Push(samples);
}
- std::size_t SamplesInQueue(u32 num_channels) const override {
+ std::size_t SamplesInQueue(u32 channel_count) const override {
if (!ctx)
return 0;
- return queue.Size() / num_channels;
+ return queue.Size() / channel_count;
}
void Flush() override {