OpenBVE icon indicating copy to clipboard operation
OpenBVE copied to clipboard

New: Add XML sound parser

Open leezer3 opened this issue 6 years ago • 2 comments

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

leezer3 avatar Sep 09 '18 19:09 leezer3

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.

leezer3 avatar Sep 11 '18 11:09 leezer3

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)

leezer3 avatar Feb 05 '23 22:02 leezer3