summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2019-09-21 08:24:56 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2019-09-21 08:24:56 +0200
commite9d19add7d4a857a87191ec421a298eea1b89cf5 (patch)
treea28bfdf31c13b481245dcd8e56340ad3ed4cf26e /src
parentAdded frame_count for REV7 audio renderer (diff)
downloadyuzu-e9d19add7d4a857a87191ec421a298eea1b89cf5.tar
yuzu-e9d19add7d4a857a87191ec421a298eea1b89cf5.tar.gz
yuzu-e9d19add7d4a857a87191ec421a298eea1b89cf5.tar.bz2
yuzu-e9d19add7d4a857a87191ec421a298eea1b89cf5.tar.lz
yuzu-e9d19add7d4a857a87191ec421a298eea1b89cf5.tar.xz
yuzu-e9d19add7d4a857a87191ec421a298eea1b89cf5.tar.zst
yuzu-e9d19add7d4a857a87191ec421a298eea1b89cf5.zip
Diffstat (limited to 'src')
-rw-r--r--src/audio_core/audio_renderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/audio_renderer.cpp b/src/audio_core/audio_renderer.cpp
index cf24527f3..e6f38d600 100644
--- a/src/audio_core/audio_renderer.cpp
+++ b/src/audio_core/audio_renderer.cpp
@@ -107,7 +107,7 @@ Stream::State AudioRenderer::GetStreamState() const {
return stream->GetState();
}
-constexpr u32 VersionFromRevision(u32_le rev) {
+static constexpr u32 VersionFromRevision(u32_le rev) {
// "REV7" -> 7
return ((rev >> 24) & 0xff) - 0x30;
}
@@ -172,7 +172,7 @@ std::vector<u8> AudioRenderer::UpdateAudioRenderer(const std::vector<u8>& input_
UpdateDataHeader response_data{worker_params};
std::vector<u8> output_params(response_data.total_size);
const auto audren_revision = VersionFromRevision(config.revision);
- if (audren_revision >= 7) {
+ if (audren_revision >= 5) {
response_data.frame_count = 0x10;
response_data.total_size += 0x10;
}