diff options
| author | Teddy Wing | 2018-10-28 23:53:10 +0100 |
|---|---|---|
| committer | Teddy Wing | 2018-10-28 23:53:10 +0100 |
| commit | c54226120bdc9277f9ab6e0e54dae9062550702d (patch) | |
| tree | af5084e4322148343ce36adcc8fbc758d7c15363 /.gitmodules | |
| parent | e8ba4dc878a44f14e656664fa2e9d0ea362cbc10 (diff) | |
| download | dome-key-map-c54226120bdc9277f9ab6e0e54dae9062550702d.tar.bz2 | |
Add mode activated and deactivated sounds
* Remove test "activ.wav" file
* Add mode activated and deactivated audio files
* Add two new methods to play these two sounds without having to pass in
`MODE_ACTIVATED` or `MODE_DEACTIVATED` from outside the module
* Make `play_audio()` private
The 'rodio' crate supports WAV, FLAC, MP3, and Vorbis file types. Tried
using OGG and MP3 versions of the audio, which sound effectively the
same played in an audio player, and have much better compression, but
'rodio' kept playing them choppily, in a weird staccato. Maybe the
sample rate wasn't right? No idea what the problem was. Didn't really
have the same problem with the WAV files. Unfortunate because the OGG
files were only 16K, and the MP3 files were 32K, while the WAV files are
348K. Would much rather have smaller size files, but if the sounds play
incorrectly, there's no easy way around it.
Diffstat (limited to '.gitmodules')
0 files changed, 0 insertions, 0 deletions
