diff options
author | Chloe Marcec <dmarcecguzman@gmail.com> | 2020-11-17 05:40:19 +0100 |
---|---|---|
committer | Chloe Marcec <dmarcecguzman@gmail.com> | 2020-11-17 05:40:19 +0100 |
commit | 908d3c56793ee67dccd0d370b175c4937420053f (patch) | |
tree | 5a29b03bf2689219a7c686cc5b9b38db0d996322 /src/audio_core/sink_context.cpp | |
parent | audren: Make use of nodiscard, rework downmixing, release all buffers (diff) | |
download | yuzu-908d3c56793ee67dccd0d370b175c4937420053f.tar yuzu-908d3c56793ee67dccd0d370b175c4937420053f.tar.gz yuzu-908d3c56793ee67dccd0d370b175c4937420053f.tar.bz2 yuzu-908d3c56793ee67dccd0d370b175c4937420053f.tar.lz yuzu-908d3c56793ee67dccd0d370b175c4937420053f.tar.xz yuzu-908d3c56793ee67dccd0d370b175c4937420053f.tar.zst yuzu-908d3c56793ee67dccd0d370b175c4937420053f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio_core/sink_context.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/audio_core/sink_context.cpp b/src/audio_core/sink_context.cpp index cdb47ba81..b29b47890 100644 --- a/src/audio_core/sink_context.cpp +++ b/src/audio_core/sink_context.cpp @@ -15,8 +15,8 @@ std::size_t SinkContext::GetCount() const { void SinkContext::UpdateMainSink(const SinkInfo::InParams& in) { ASSERT(in.type == SinkTypes::Device); - downmix = in.device.down_matrix_enabled; - if (downmix) { + has_downmix_coefs = in.device.down_matrix_enabled; + if (has_downmix_coefs) { downmix_coefficients = in.device.down_matrix_coef; } in_use = in.in_use; @@ -35,10 +35,10 @@ std::vector<u8> SinkContext::OutputBuffers() const { } bool SinkContext::HasDownMixingCoefficients() const { - return downmix; + return has_downmix_coefs; } -const std::array<float_le, 4>& SinkContext::GetDownmixCoefficients() const { +const DownmixCoefficients& SinkContext::GetDownmixCoefficients() const { return downmix_coefficients; } |