diff --git a/RetroFE/Source/Execute/Launcher.cpp b/RetroFE/Source/Execute/Launcher.cpp index 14b1613..242af40 100755 --- a/RetroFE/Source/Execute/Launcher.cpp +++ b/RetroFE/Source/Execute/Launcher.cpp @@ -132,7 +132,7 @@ bool Launcher::run(std::string collection, Item *collectionItem) system(cmd.c_str()); /* Restart audio amp */ - system(SHELL_CMD_TURN_AMPLI_ON); + system(SHELL_CMD_AUDIO_AMP_ON); /* Execute game */ if(!execute(executablePath, args, currentDirectory)) @@ -142,7 +142,7 @@ bool Launcher::run(std::string collection, Item *collectionItem) } /* Stop audio amp */ - system(SHELL_CMD_TURN_AMPLI_OFF); + system(SHELL_CMD_AUDIO_AMP_OFF); /* Log shell cmd */ Logger::write(Logger::ZONE_INFO, "Launcher", "Applying keymap default"); diff --git a/RetroFE/Source/Sound/Sound.cpp b/RetroFE/Source/Sound/Sound.cpp index d361efc..b3122a8 100755 --- a/RetroFE/Source/Sound/Sound.cpp +++ b/RetroFE/Source/Sound/Sound.cpp @@ -53,7 +53,7 @@ void Sound::play() //printf("%s\n", __func__); SDL_RemoveTimer(idTimer); if(!ampliStarted){ - fp = popen(SHELL_CMD_TURN_AMPLI_ON, "r"); + fp = popen(SHELL_CMD_AUDIO_AMP_ON, "r"); if (fp != NULL) { ampliStarted = 1; //pclose(fp); // --> regression, to investigate @@ -72,7 +72,7 @@ uint32_t Sound::turnOffAmpli(uint32_t interval, void *param) FILE *fp; //printf("%s\n", __func__); - fp = popen(SHELL_CMD_TURN_AMPLI_OFF, "r"); + fp = popen(SHELL_CMD_AUDIO_AMP_OFF, "r"); if (fp != NULL) { ampliStarted = 0; //pclose(fp); // --> regression, to investigate diff --git a/RetroFE/Source/Utility/Utils.h b/RetroFE/Source/Utility/Utils.h index 77bbbf4..111ff38 100755 --- a/RetroFE/Source/Utility/Utils.h +++ b/RetroFE/Source/Utility/Utils.h @@ -23,8 +23,8 @@ #define SHELL_CMD_ROOTFS_RW "rw" #define SHELL_CMD_ROOTFS_RO "ro" #define SHELL_CMD_RECORD_PID "record_pid" -#define SHELL_CMD_TURN_AMPLI_ON "audio_amp on" -#define SHELL_CMD_TURN_AMPLI_OFF "audio_amp off" +#define SHELL_CMD_AUDIO_AMP_ON "audio_amp on" +#define SHELL_CMD_AUDIO_AMP_OFF "audio_amp off" #define SHELL_CMD_MAPPING_ROM "keymap rom" #define SHELL_CMD_MAPPING_DEFAULT "keymap default"