diff options
author | Lioncash <mathew1800@gmail.com> | 2019-02-25 15:28:48 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-02-25 15:28:51 +0100 |
commit | 7cdeec20ec5542925e8a35943604857072796832 (patch) | |
tree | a4993ad0aaf8fb1bc0cd484bebe38e4072380c2e | |
parent | audio_core/codec: Resolve truncation warnings within DecodeADPCM (diff) | |
download | yuzu-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 '')
-rw-r--r-- | src/audio_core/cubeb_sink.cpp | 4 |
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 { |