mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-15 03:08:52 +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());
|
system(cmd.c_str());
|
||||||
|
|
||||||
/* Restart audio amp */
|
/* Restart audio amp */
|
||||||
system(SHELL_CMD_TURN_AMPLI_ON);
|
system(SHELL_CMD_AUDIO_AMP_ON);
|
||||||
|
|
||||||
/* Execute game */
|
/* Execute game */
|
||||||
if(!execute(executablePath, args, currentDirectory))
|
if(!execute(executablePath, args, currentDirectory))
|
||||||
@ -142,7 +142,7 @@ bool Launcher::run(std::string collection, Item *collectionItem)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Stop audio amp */
|
/* Stop audio amp */
|
||||||
system(SHELL_CMD_TURN_AMPLI_OFF);
|
system(SHELL_CMD_AUDIO_AMP_OFF);
|
||||||
|
|
||||||
/* Log shell cmd */
|
/* Log shell cmd */
|
||||||
Logger::write(Logger::ZONE_INFO, "Launcher", "Applying keymap default");
|
Logger::write(Logger::ZONE_INFO, "Launcher", "Applying keymap default");
|
||||||
|
|||||||
@ -53,7 +53,7 @@ void Sound::play()
|
|||||||
//printf("%s\n", __func__);
|
//printf("%s\n", __func__);
|
||||||
SDL_RemoveTimer(idTimer);
|
SDL_RemoveTimer(idTimer);
|
||||||
if(!ampliStarted){
|
if(!ampliStarted){
|
||||||
fp = popen(SHELL_CMD_TURN_AMPLI_ON, "r");
|
fp = popen(SHELL_CMD_AUDIO_AMP_ON, "r");
|
||||||
if (fp != NULL) {
|
if (fp != NULL) {
|
||||||
ampliStarted = 1;
|
ampliStarted = 1;
|
||||||
//pclose(fp); // --> regression, to investigate
|
//pclose(fp); // --> regression, to investigate
|
||||||
@ -72,7 +72,7 @@ uint32_t Sound::turnOffAmpli(uint32_t interval, void *param)
|
|||||||
FILE *fp;
|
FILE *fp;
|
||||||
|
|
||||||
//printf("%s\n", __func__);
|
//printf("%s\n", __func__);
|
||||||
fp = popen(SHELL_CMD_TURN_AMPLI_OFF, "r");
|
fp = popen(SHELL_CMD_AUDIO_AMP_OFF, "r");
|
||||||
if (fp != NULL) {
|
if (fp != NULL) {
|
||||||
ampliStarted = 0;
|
ampliStarted = 0;
|
||||||
//pclose(fp); // --> regression, to investigate
|
//pclose(fp); // --> regression, to investigate
|
||||||
|
|||||||
@ -23,8 +23,8 @@
|
|||||||
#define SHELL_CMD_ROOTFS_RW "rw"
|
#define SHELL_CMD_ROOTFS_RW "rw"
|
||||||
#define SHELL_CMD_ROOTFS_RO "ro"
|
#define SHELL_CMD_ROOTFS_RO "ro"
|
||||||
#define SHELL_CMD_RECORD_PID "record_pid"
|
#define SHELL_CMD_RECORD_PID "record_pid"
|
||||||
#define SHELL_CMD_TURN_AMPLI_ON "audio_amp on"
|
#define SHELL_CMD_AUDIO_AMP_ON "audio_amp on"
|
||||||
#define SHELL_CMD_TURN_AMPLI_OFF "audio_amp off"
|
#define SHELL_CMD_AUDIO_AMP_OFF "audio_amp off"
|
||||||
#define SHELL_CMD_MAPPING_ROM "keymap rom"
|
#define SHELL_CMD_MAPPING_ROM "keymap rom"
|
||||||
#define SHELL_CMD_MAPPING_DEFAULT "keymap default"
|
#define SHELL_CMD_MAPPING_DEFAULT "keymap default"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user