yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

Pushed the requested sample rate instead of our fixed sample rate

This commit is contained in:
David Marcec 2018-08-12 14:58:36 +10:00
parent e5ee0afe6f
commit 094f6003e0
2 changed files with 3 additions and 5 deletions

View File

@ -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 {

View File

@ -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) {