mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-23 15:21:47 +01:00
Use the device sample rate when creating an audio track in audren
This commit is contained in:
parent
27d7839bcb
commit
e3313ae731
@ -17,7 +17,7 @@ namespace skyline::service::audio::IAudioRenderer {
|
|||||||
{0x7, SFUNC(IAudioRenderer::QuerySystemEvent)},
|
{0x7, SFUNC(IAudioRenderer::QuerySystemEvent)},
|
||||||
{0xA, SFUNC(IAudioRenderer::RequestUpdate)},
|
{0xA, SFUNC(IAudioRenderer::RequestUpdate)},
|
||||||
}) {
|
}) {
|
||||||
track = state.audio->OpenTrack(constant::ChannelCount, parameters.sampleRate, []() {});
|
track = state.audio->OpenTrack(constant::ChannelCount, constant::SampleRate, []() {});
|
||||||
track->Start();
|
track->Start();
|
||||||
|
|
||||||
memoryPools.resize(parameters.effectCount + parameters.voiceCount * 4);
|
memoryPools.resize(parameters.effectCount + parameters.voiceCount * 4);
|
||||||
|
Loading…
Reference in New Issue
Block a user