Use the device sample rate when creating an audio track in audren

This commit is contained in:
Billy Laws 2020-07-09 19:35:34 +01:00 committed by ◱ PixelyIon
parent 27d7839bcb
commit e3313ae731

View File

@ -17,7 +17,7 @@ namespace skyline::service::audio::IAudioRenderer {
{0x7, SFUNC(IAudioRenderer::QuerySystemEvent)},
{0xA, SFUNC(IAudioRenderer::RequestUpdate)},
}) {
track = state.audio->OpenTrack(constant::ChannelCount, parameters.sampleRate, []() {});
track = state.audio->OpenTrack(constant::ChannelCount, constant::SampleRate, []() {});
track->Start();
memoryPools.resize(parameters.effectCount + parameters.voiceCount * 4);