Add volume slider & mute audio settings

This commit is contained in:
wheremyfoodat 2024-11-28 19:01:55 +02:00
parent b251f84ab1
commit 3b6190b69a
7 changed files with 70 additions and 12 deletions

View file

@ -715,10 +715,7 @@ namespace Audio {
response.command = request.command;
response.mode = request.mode;
// We allow disabling AAC audio. Mostly useful for debugging & figuring out if an audio track is AAC or not.
if (settings.aacEnabled) {
aacDecoder->decode(response, request, [this](u32 paddr) { return getPointerPhys<u8>(paddr); });
}
aacDecoder->decode(response, request, [this](u32 paddr) { return getPointerPhys<u8>(paddr); }, settings.aacEnabled);
break;
}