HeliosVirtualCockpit / Helios

Helios Distribution
https://github.com/HeliosVirtualCockpit/Helios/wiki
GNU General Public License v3.0
202 stars 33 forks source link

Audio implementation possible or planned? #339

Open Chrischan66 opened 4 years ago

Chrischan66 commented 4 years ago

Hi Guys and thank you for developing this software! Can you possibly add an audio-feature, that let us bind an mp3´s or similar to a button-press or knob-rotation? Would be cool if we get an audio feedback as a touchscreen-user. That would be awesome! :)

derammo commented 4 years ago

that's actually pretty sick! Are you aware of any open source projects we could leverage? Surely button click feedback and knob detent feedback is a thing that has been done well by others?

derammo commented 4 years ago

just to be clear: there are two things we'd need to either find or build:

1) high quality sounds for rotaries and buttons 2) real time audio playback (probably not a good idea to use regular "play a sound" API hundreds of times a second if someone is spinning a rotary with detents :))

derammo commented 4 years ago

developers: here's a useful example using nsound https://markheath.net/post/fire-and-forget-audio-playback-with

NOTE: the MS .Net APIs are useless for sound effects

BlueFinBima commented 2 years ago

@Chrischan66 Having thought about this a little, there are already complex audio feedback effects for many Helios interactions, it happens via the in-game sounds of the control being changed. I accept that there is probably a case for a brief feedback tone for initial finger landing, but I would like to understand the use-case for more complex sound effects. I'd appreciate a little more input.

Chrischan66 commented 2 years ago

@BlueFinBima I tried the solution mentioned in the Discord Threat. It worked so far, but ist a lot of work to assign all the sounds to the profile. When in the F18C cockpit, all the buttonsounds are way to gentle - although I set them to max (300) in game. BUT what I found was a mod https://www.digitalcombatsimulator.com/en/files/3307906/ that solves my problem in the F18. It raises all the knob- and rotarysound volumes. Now I have the hearable feedback for my touch inputs. :)

I think it would be cool, if Helios is able to play soundfiles natively. In my case, I would use soundfiles for custom menus or something. But for now, I am happy as it is :)

Thanks for thinking about it! I really appreciate your work!!!