Changeset 298:24c67ec5cdca for src/mlx/soundsched.py
- Timestamp:
- 07/21/12 12:43:34 (12 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/soundsched.py
r229 r298 1 # Module to schedule the sounds to be played2 3 #------------------------------------------------------------------------------4 1 5 2 from sound import startSound … … 8 5 9 6 import threading 7 8 #------------------------------------------------------------------------------ 9 10 ## @package mlx.soundsched 11 # 12 # Sound playback scheduling. 13 # 14 # The logger may play certain sound files when certain conditions hold. For 15 # example, if the landing or the strobe lights are switched on during taxi, and 16 # we go to the takeoff state, a voice says "Cabin crew, please take your seats 17 # for takeoff". Some sounds are played only when the pilot presses a hotkey, if 18 # the program is set up that way. 19 # 20 # Each sound is represented by an instance of a subclass of \ref Sound. If a 21 # new \ref mlx.fs.AircraftState "aircraft state" comes in from the simulator, 22 # the \ref Sound.shouldPlay "shouldPlay" functions of the registered sound 23 # objects are called with that state, and if the function returns \c True, the 24 # corresponding sound file is played. 25 # 26 # The \ref ChecklistScheduler class handles the playback of the checklists, 27 # which are basically sequences of sound files played back one-by-one when a 28 # certain hotkey is pressed. 10 29 11 30 #------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.