A class that handles the playback, processing, and mixing of sound for an engine context.
More...
#include <omEngineSoundSystem.h>
A class that handles the playback, processing, and mixing of sound for an engine context.
om::engine::sound::SoundSystem::SoundSystem |
( |
| ) |
|
Create a new sound system with the default state.
om::engine::sound::SoundSystem::~SoundSystem |
( |
| ) |
|
Destroy a sound system and release all internal resources.
virtual void om::engine::sound::SoundSystem::update |
( |
EngineContext & |
engine, |
|
|
const Time & |
dt |
|
) |
| |
|
virtual |
virtual void om::engine::sound::SoundSystem::addComponent |
( |
const ResourceType & |
type, |
|
|
void * |
component, |
|
|
EngineContext & |
engine |
|
) |
| |
|
virtual |
Update the internal state of the system for a component that was added to the engine.
virtual void om::engine::sound::SoundSystem::removeComponent |
( |
const ResourceType & |
type, |
|
|
void * |
component, |
|
|
EngineContext & |
engine |
|
) |
| |
|
virtual |
Update the internal state of the system for a component that was removed from the engine.
const EventType om::engine::sound::SoundSystem::PLAY_SOUND |
|
static |
An event indicating that a sound should be played, with value of type SoundPlayback.
The value object contains parameters for the sound that should be played.
const EventType om::engine::sound::SoundSystem::PLAYED_SOUND |
|
static |
An event indicating that a sound was started to be played, with value of type SoundPlaybackID.
The value object contains the ID of the playing sound so that it can be referenced later.
const EventType om::engine::sound::SoundSystem::STOP_SOUND |
|
static |
An event indicating that a currently playing sound should be stopped, with value of type SoundPlaybackID.
The value object contains the ID of the sound that should be stopped. The stopped sound is completely removed from the playback system.
const EventType om::engine::sound::SoundSystem::STOP_ALL_SOUNDS |
|
static |
An event indicating that all currently playing sounds should be stopped.
All sounds are removed from playback and cannot be resumed.
const EventType om::engine::sound::SoundSystem::PAUSE_SOUND |
|
static |
An event indicating that a playing sound should be paused, with value of type SoundPlaybackID.
The value object contains the ID of the sound that should be paused. The paused sound is temporarily stopped from playback, but can be resumed using a RESUME_SOUND event.
const EventType om::engine::sound::SoundSystem::PAUSE_ALL_SOUNDS |
|
static |
An event indicating that all playing sounds should be paused.
All currently playing sounds that the system manages are temporarily paused.
const EventType om::engine::sound::SoundSystem::RESUME_SOUND |
|
static |
An event indicating that a paused sound should be resumed, with value of type SoundPlaybackID.
The value object contains the ID of the sound that should be resumed. The sound continues playback from the position where it was previously paused.
const EventType om::engine::sound::SoundSystem::RESUME_ALL_SOUNDS |
|
static |
An event indicating that all paused sounds should be resumed.
All currently paused sounds that the system manages are resumed for playback from the position where they were previously paused.
const EventType om::engine::sound::SoundSystem::UPDATE_SOUND |
|
static |
An event indicating that the playback parameters for a sound should be updated, with value of type SoundPlaybackID.
The value object contains the ID of the sound that should be resumed. The sound continues playback from the position where it was previously paused.
The documentation for this class was generated from the following file: