summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2018-08-12 06:58:36 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2018-08-12 06:58:36 +0200
commit094f6003e07cbb2c42142787d52fe6e59b3918cb (patch)
tree23792398894000761c422e21226823c672d1aeef /src
parentAdded GetAudioRendererSampleRate, GetAudioRendererSampleCount & GetAudioRendererMixBufferCount (diff)
downloadyuzu-094f6003e07cbb2c42142787d52fe6e59b3918cb.tar
yuzu-094f6003e07cbb2c42142787d52fe6e59b3918cb.tar.gz
yuzu-094f6003e07cbb2c42142787d52fe6e59b3918cb.tar.bz2
yuzu-094f6003e07cbb2c42142787d52fe6e59b3918cb.tar.lz
yuzu-094f6003e07cbb2c42142787d52fe6e59b3918cb.tar.xz
yuzu-094f6003e07cbb2c42142787d52fe6e59b3918cb.tar.zst
yuzu-094f6003e07cbb2c42142787d52fe6e59b3918cb.zip
Diffstat (limited to 'src')
-rw-r--r--src/audio_core/audio_renderer.cpp2
-rw-r--r--src/core/hle/service/audio/audren_u.cpp6
2 files changed, 3 insertions, 5 deletions
diff --git a/src/audio_core/audio_renderer.cpp b/src/audio_core/audio_renderer.cpp
index 1ab6e88c2..6ebed3fb0 100644
--- a/src/audio_core/audio_renderer.cpp
+++ b/src/audio_core/audio_renderer.cpp
@@ -27,7 +27,7 @@ AudioRenderer::AudioRenderer(AudioRendererParameter params,
}
u32 AudioRenderer::GetSampleRate() const {
- return STREAM_SAMPLE_RATE;
+ return worker_params.sample_rate;
}
u32 AudioRenderer::GetSampleCount() const {
diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp
index 4bdac8067..0b6034bb3 100644
--- a/src/core/hle/service/audio/audren_u.cpp
+++ b/src/core/hle/service/audio/audren_u.cpp
@@ -48,10 +48,8 @@ private:
void GetAudioRendererSampleRate(Kernel::HLERequestContext& ctx) {
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(RESULT_SUCCESS);
- rb.Push<u32>(
- renderer->GetSampleRate()); // Switch uses the worker_params value, but we always
- // have a fixed sample rate so return that instead
- LOG_WARNING(Service_Audio, "(STUBBED) called");
+ rb.Push<u32>(renderer->GetSampleRate());
+ LOG_DEBUG(Service_Audio, "called");
}
void GetAudioRendererSampleCount(Kernel::HLERequestContext& ctx) {