Things used for audio (sound and music) More...
Classes | |
class | Sound |
handles both short sounds and music (GUI Only) More... | |
struct | SoundEvent |
a sound completed or is looping (GUI Only) More... | |
class | SoundManager |
used for application wide sound settings and options (GUI Only) More... | |
Variables | |
const | soundEvent_DonePlaying = 0 |
sound event type for completion of a sound More... | |
const | soundEvent_FailedToPlay = 2 |
sound event type for a sound error More... | |
const | soundEvent_Looping = 1 |
sound event type for a sound finishing and starting over More... | |
Things used for audio (sound and music)
struct pdg::SoundEvent |
a sound completed or is looping (GUI Only)
Generated by the SoundManager whenever a sound finishes playing (soundEvent_DonePlaying), or reaches the end and loops (soundEvent_Looping). If there is an error
For keyboard data entry, use eventType_KeyPress.
{ emitter: {}, // the emitter that generated this event eventType: 14, // the event type (eventType_SoundEvent) eventCode: 1, // the sound event code (one of: soundEvent_DonePlaying, soundEvent_Looping, or soundEvent_FailedToPlay) sound: {} // the Sound object that caused the event }
soundEvent_DonePlaying = 0 |
sound event type for completion of a sound
soundEvent_FailedToPlay = 2 |
sound event type for a sound error
soundEvent_Looping = 1 |
sound event type for a sound finishing and starting over