Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Sound options #24

Open
bigwhitebuddha opened this issue Dec 31, 2022 · 5 comments
Open

Feature request: Sound options #24

bigwhitebuddha opened this issue Dec 31, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@bigwhitebuddha
Copy link

While this technically isn't an issue, I do believe it would really round out this app to have the option to add sounds for navigating, and launching apps.

@complexlogic
Copy link
Owner

complexlogic commented Dec 31, 2022

This wouldn't be too difficult, but it would require an additional dependency, SDL_mixer. I'll consider it for a future release.

@complexlogic complexlogic added the enhancement New feature or request label Dec 31, 2022
@bigwhitebuddha
Copy link
Author

I have figured out a workaround utilizing autohotkey. I basically run nircmd, to then run ffplay (hidden). While this is not ideal, it works surprisingly well!

@complexlogic
Copy link
Owner

@bigwhitebuddha That is very clever. What are you using for the sound effects?

@bigwhitebuddha
Copy link
Author

@complexlogic It is a collection of sound effects that I utilize for Playnite, and Launchbox. There are a good number of them on Launchbox's forums. I can also send over the script for how I utilized the sound effects.

@bigwhitebuddha
Copy link
Author

bigwhitebuddha commented Jan 4, 2023

NOTE: All links (Except Launchbox) are direct downloads. They are from their respective authors, so I am confident they aren't malicious at all, but just an FYI.

The following is an autohotkey script I utilize to Launch "Flex-Launcher" with sound for my inputs.

For this script, I utilize, nircmd (Which is able to run the sound files without any display at all), and ffplay (which plays the .wav files). Both resources are free, and you can place them inside of your Flex Launcher folder (EXAMPLE: C:\Flex Launcher\assets\dependencies). All of the text titled "C:\your_path_here" will need to be changed to the path for each exe file at the end of the example path.

There is a great repository of sound files located at Launchbox.com. You will have to create a (Free) account in order to download from there.

The functionality has been very good so far, however there is a caveat regarding this script:

  1. The script itself is interpreting keyboard presses. I have not scripted it for Xinput, so you will need to utilize a remapper to make this work with a controller.

Just copy the text below, and place them in a new script.


~up::
run, "C:\your_path_here\nircmd.exe" exec hide "C:\your_path_here\ffplay.exe" "C:\your_path_here\navigation.wav" -nodisp -autoexit -loglevel quiet
return

~down::
run, "C:\your_path_here\nircmd.exe" exec hide "C:\your_path_here\ffplay.exe" "C:\your_path_here\navigation.wav" -nodisp -autoexit -loglevel quiet
return

~left::
run, "C:\your_path_here\nircmd.exe" exec hide "C:\your_path_here\ffplay.exe" "C:\your_path_here\navigation.wav" -nodisp -autoexit -loglevel quiet
return

~right::
run, "C:\your_path_here\nircmd.exe" exec hide "C:\your_path_here\ffplay.exe" "C:\your_path_here\navigation.wav" -nodisp -autoexit -loglevel quiet
return

~enter::
run, "C:\your_path_here\nircmd.exe" exec hide "C:\your_path_here\ffplay.exe" "C:\your_path_here\enter.wav" -nodisp -autoexit -loglevel quiet
return

~BS::
run, "C:\your_path_here\nircmd.exe" exec hide "C:\your_path_here\ffplay.exe" "C:\your_path_here\back.wav" -nodisp -autoexit -loglevel quiet
return

@bigwhitebuddha bigwhitebuddha changed the title Sound options Feature Request: Sound options Jan 4, 2023
@bigwhitebuddha bigwhitebuddha changed the title Feature Request: Sound options Feature request: Sound options Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants