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 AnyShow all
Members list
Value members
Inherited methods
Changes the settings of the subsystem.
Changes the settings of the subsystem.
Value parameters
- newSettings
-
new settings to apply
Attributes
- 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
Gets the mixing definitions for a channel.
Gets the mixing definitions for a channel.
Value parameters
- channel
-
channel to check
Attributes
- Inherited from:
- AudioPlayer
Creates the subsystem.
Creates the subsystem.
Operations can only be called after calling this.
Value parameters
- settings
-
settings used to configure the subsystem
Attributes
- Returns
-
this subsystem
- Inherited from:
- Simple
Checks if the subsystem is created or if it has been destroyed.
Checks if a channel still has data to be played.
Checks if a channel still has data to be played.
Value parameters
- channel
-
channel to check
Attributes
- Returns
-
true of the channel is still playing, false otherwise
- Inherited from:
- AudioPlayer
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.
Value parameters
- channel
-
channel where to play the audio wave
- wave
-
audio wave to play
Attributes
- 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.
Value parameters
- wave
-
audio wave to play
Attributes
- 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.
Value parameters
- channel
-
channel where to play the audio clip
- clip
-
audio clip to play
Attributes
- 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.
Value parameters
- clip
-
audio clip to play
Attributes
- Inherited from:
- AudioPlayer
Sets the mixing definitions for a channel.
Sets the mixing definitions for a channel.
Value parameters
- channel
-
channel to update
- mix
-
the new mixing definitions
Attributes
- 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.
Value parameters
- channel
-
channel to stop
Attributes
- 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.
Updates the mixing definitions for a channel based on the current definitions.
Updates the mixing definitions for a channel based on the current definitions.
Value parameters
- channel
-
channel to update
- f
-
update function
Attributes
- Returns
-
the new audio mix
- Inherited from:
- AudioPlayer