Index

Package: Audio_Players

Description

package Audio_Players is

Classes

Audio_Player

type Audio_Player is new Limited_Object and Process and Event_Listener with private;

Ancestors:

Primitive operations:

Construct
Delete (overriding Objects.Delete)
Events.Listeners.Handle_Event (Inherited)
Events.Listeners.To_String (Inherited)
Get_Process_Name
Handle_Event (overriding Events.Listeners.Event_Listener)
Objects.Construct (Inherited)
Objects.To_String (Inherited)
Processes.Get_Process_Name (Inherited)
Processes.Tick (Inherited)
Tick
Audio_Player objects listen for certain audio events and play sound effects or music on command. The player contains an internal task for playing audio in the background.

Types

A_Audio_Player

type A_Audio_Player is access all Audio_Player'Class;

Subprograms & Entries

Create_Audio_Player

function Create_Audio_Player
( corral: not null A_Corral ) return A_Audio_Player;
Creates a new Audio_Player that will listen for events in 'corral'.

Start

procedure Start
( this: not null access Audio_Player'Class );
Starts the Audio_Player's internals. This must be called before any audio can be played.

Stop

procedure Stop
( this: not null access Audio_Player'Class );
Stops the audio player's internals. This must be called after Start and before deleting the object.

Delete

procedure Delete
( this: in out A_Audio_Player );
Deletes the Audio_Player.