mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-24 00:35:40 +01:00
Pushed the requested sample rate instead of our fixed sample rate
This commit is contained in:
parent
e5ee0afe6f
commit
094f6003e0
@ -27,7 +27,7 @@ AudioRenderer::AudioRenderer(AudioRendererParameter params,
|
|||||||
}
|
}
|
||||||
|
|
||||||
u32 AudioRenderer::GetSampleRate() const {
|
u32 AudioRenderer::GetSampleRate() const {
|
||||||
return STREAM_SAMPLE_RATE;
|
return worker_params.sample_rate;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 AudioRenderer::GetSampleCount() const {
|
u32 AudioRenderer::GetSampleCount() const {
|
||||||
|
@ -48,10 +48,8 @@ private:
|
|||||||
void GetAudioRendererSampleRate(Kernel::HLERequestContext& ctx) {
|
void GetAudioRendererSampleRate(Kernel::HLERequestContext& ctx) {
|
||||||
IPC::ResponseBuilder rb{ctx, 3};
|
IPC::ResponseBuilder rb{ctx, 3};
|
||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
rb.Push<u32>(
|
rb.Push<u32>(renderer->GetSampleRate());
|
||||||
renderer->GetSampleRate()); // Switch uses the worker_params value, but we always
|
LOG_DEBUG(Service_Audio, "called");
|
||||||
// have a fixed sample rate so return that instead
|
|
||||||
LOG_WARNING(Service_Audio, "(STUBBED) called");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetAudioRendererSampleCount(Kernel::HLERequestContext& ctx) {
|
void GetAudioRendererSampleCount(Kernel::HLERequestContext& ctx) {
|
||||||
|
Loading…
Reference in New Issue
Block a user