mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-08 16:18:41 +12:00
Add volume slider & mute audio settings
This commit is contained in:
parent
b251f84ab1
commit
3b6190b69a
7 changed files with 70 additions and 12 deletions
|
@ -103,10 +103,8 @@ void AAC::Decoder::decode(AAC::Message& response, const AAC::Message& request, A
|
|||
}
|
||||
} else {
|
||||
// If audio is not enabled, push 0s
|
||||
for (int sample = 0; sample < info->frameSize; sample++) {
|
||||
for (int stream = 0; stream < channels; stream++) {
|
||||
audioStreams[stream].push_back(0);
|
||||
}
|
||||
for (int stream = 0; stream < channels; stream++) {
|
||||
audioStreams[stream].resize(audioStreams[stream].size() + info->frameSize, 0);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue