normalitzat Audio
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
#include <numeric> // for accumulate
|
||||
#include <sstream> // for basic_stringstream
|
||||
|
||||
#include "core/audio/jail_audio.hpp" // for JA_LoadSound, JA_PlaySound, JA_DeleteSound
|
||||
#include "core/audio/audio.hpp" // for Audio::get (playSound)
|
||||
#include "core/audio/jail_audio.hpp" // for JA_LoadSound, JA_DeleteSound (propietat local)
|
||||
#include "core/input/input.h" // for Input, REPEAT_FALSE, inputs_e
|
||||
#include "core/rendering/text.h" // for Text
|
||||
#include "core/resources/asset.h" // for Asset
|
||||
@@ -758,28 +759,28 @@ void Menu::checkInput() {
|
||||
if (Input::get()->checkInput(input_up, REPEAT_FALSE)) {
|
||||
decreaseSelectorIndex();
|
||||
if (soundMove) {
|
||||
JA_PlaySound(soundMove);
|
||||
Audio::get()->playSound(soundMove);
|
||||
}
|
||||
}
|
||||
|
||||
if (Input::get()->checkInput(input_down, REPEAT_FALSE)) {
|
||||
increaseSelectorIndex();
|
||||
if (soundMove) {
|
||||
JA_PlaySound(soundMove);
|
||||
Audio::get()->playSound(soundMove);
|
||||
}
|
||||
}
|
||||
|
||||
if (Input::get()->checkInput(input_accept, REPEAT_FALSE)) {
|
||||
itemSelected = selector.index;
|
||||
if (soundAccept) {
|
||||
JA_PlaySound(soundAccept);
|
||||
Audio::get()->playSound(soundAccept);
|
||||
}
|
||||
}
|
||||
|
||||
if (Input::get()->checkInput(input_cancel, REPEAT_FALSE)) {
|
||||
itemSelected = defaultActionWhenCancel;
|
||||
if (soundCancel) {
|
||||
JA_PlaySound(soundCancel);
|
||||
Audio::get()->playSound(soundCancel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user