OpenBVE
OpenBVE copied to clipboard
New: Add XML sound parser
This is a WIP implementation for this idea: http://bveworldwide.forumotion.com/t1598-station-announcements#17075
Working:
- Adding sounds via the XML
- Positioning sounds
- Pause between repetitions when sound is looped
TODO:
- Add some time based conditions- Rehack the sound event on the track to add time based triggers.
- ~~How easy is it to add a pause between repetitions?~~ DONE
- Cleanup
- Document
Pause added between repetitions. Note that the user must ensure that their sound ends at amplitude 0 (e.g. totally silent) , as otherwise this will cause a slight pop. This is not a bug.
Somewhat rebuilt to work with the current master.
Following on from discussion over email, a potentially useful addition would be the ability to queue an announcement for playback via keypress. This adds some of the framework for this (don't like the use of dynamic, but at the same time don't add massive fields to API stuff)