A low-level version of a audio player with init and close methods.
Attributes
- Companion:
- object
- Graph
- Supertypes
- trait LowLevelSubsystem[Settings]trait AutoCloseabletrait AudioPlayerclass Objecttrait Matchableclass Any
Members list
Value members
Inherited methods
Composes this subsystem with another subsystem
Changes the settings of the subsystem.
Changes the settings of the subsystem.
Attributes
- newSettings
new settings to apply
- Inherited from:
- Simple
Destroys the subsystem.
Destroys the subsystem.
Calling any operation on this object after calling close() without calling init() has an undefined behavior.
Attributes
- Inherited from:
- Simple
Creates the subsystem.
Creates the subsystem.
Operations can only be called after calling this.
Attributes
- settings
settings used to configure the subsystem
- Returns:
this subsystem
- Inherited from:
- Simple
Checks if the subsystem is created or if it has been destroyed.
Checks if this player still has data to be played.
Checks if this player still has data to be played.
Attributes
- Returns:
true of the player is still playing, false otherwise
- Inherited from:
- AudioPlayer
Enqueues an audio wave to be played later in a certain channel. The Audio Wave will play infinitely until stop() is called.
Enqueues an audio wave to be played later in a certain channel. The Audio Wave will play infinitely until stop() is called.
Attributes
- channel
channel where to play the audio wave
- wave
audio wave to play
- Inherited from:
- AudioPlayer
Enqueues an audio wave to be played later in channel 0. The Audio Wave will play infinitely until stop() is called.
Enqueues an audio wave to be played later in channel 0. The Audio Wave will play infinitely until stop() is called.
Attributes
- wave
audio wave to play
- Inherited from:
- AudioPlayer
Enqueues an audio clip to be played later in a certain channel.
Enqueues an audio clip to be played later in a certain channel.
Attributes
- channel
channel where to play the audio clip
- clip
audio clip to play
- Inherited from:
- AudioPlayer
Enqueues an audio clip to be played later in channel 0.
Enqueues an audio clip to be played later in channel 0.
Attributes
- clip
audio clip to play
- Inherited from:
- AudioPlayer
Returns the current settings.
Stops playback and removes all enqueued waves in a certain channel.
Stops playback and removes all enqueued waves in a certain channel.
Attributes
- channel
channel to stop
- Inherited from:
- AudioPlayer
Stops playback and removes all enqueued waves.
Configures the subsystem according to the settings and returns the applied settings.
Configures the subsystem according to the settings and returns the applied settings.
This method assumes that the subsystem is initialized.
Attributes
- Inherited from:
- Simple
Unsafe implementation of the subsystem destroy.
Unsafe implementation of the subsystem init.