Skip to content

Commit 77ccbc2

Browse files
committed
rename start_audio_amp to audio_amp
Signed-off-by: Vincent-FK <[email protected]>
1 parent 7fc674e commit 77ccbc2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

RetroFE/Source/Execute/Launcher.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ bool Launcher::run(std::string collection, Item *collectionItem)
132132
system(cmd.c_str());
133133

134134
/* Restart audio amp */
135-
system(SHELL_CMD_TURN_AMPLI_ON);
135+
system(SHELL_CMD_AUDIO_AMP_ON);
136136

137137
/* Execute game */
138138
if(!execute(executablePath, args, currentDirectory))
@@ -142,7 +142,7 @@ bool Launcher::run(std::string collection, Item *collectionItem)
142142
}
143143

144144
/* Stop audio amp */
145-
system(SHELL_CMD_TURN_AMPLI_OFF);
145+
system(SHELL_CMD_AUDIO_AMP_OFF);
146146

147147
/* Log shell cmd */
148148
Logger::write(Logger::ZONE_INFO, "Launcher", "Applying keymap default");

RetroFE/Source/Sound/Sound.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void Sound::play()
5353
//printf("%s\n", __func__);
5454
SDL_RemoveTimer(idTimer);
5555
if(!ampliStarted){
56-
fp = popen(SHELL_CMD_TURN_AMPLI_ON, "r");
56+
fp = popen(SHELL_CMD_AUDIO_AMP_ON, "r");
5757
if (fp != NULL) {
5858
ampliStarted = 1;
5959
//pclose(fp); // --> regression, to investigate
@@ -72,7 +72,7 @@ uint32_t Sound::turnOffAmpli(uint32_t interval, void *param)
7272
FILE *fp;
7373

7474
//printf("%s\n", __func__);
75-
fp = popen(SHELL_CMD_TURN_AMPLI_OFF, "r");
75+
fp = popen(SHELL_CMD_AUDIO_AMP_OFF, "r");
7676
if (fp != NULL) {
7777
ampliStarted = 0;
7878
//pclose(fp); // --> regression, to investigate

RetroFE/Source/Utility/Utils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
#define SHELL_CMD_ROOTFS_RW "rw"
2424
#define SHELL_CMD_ROOTFS_RO "ro"
2525
#define SHELL_CMD_RECORD_PID "record_pid"
26-
#define SHELL_CMD_TURN_AMPLI_ON "audio_amp on"
27-
#define SHELL_CMD_TURN_AMPLI_OFF "audio_amp off"
26+
#define SHELL_CMD_AUDIO_AMP_ON "audio_amp on"
27+
#define SHELL_CMD_AUDIO_AMP_OFF "audio_amp off"
2828
#define SHELL_CMD_MAPPING_ROM "keymap rom"
2929
#define SHELL_CMD_MAPPING_DEFAULT "keymap default"
3030

0 commit comments

Comments
 (0)