mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-12 17:58:53 +01:00
rename start_audio_amp to audio_amp
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
This commit is contained in:
parent
7fc674e466
commit
77ccbc26de
@ -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");
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user