Index

Package: Cache

Description

private package Audio_Players.Cache is

Classes

Sound (abstract)

type Sound is abstract new Limited_Object with private;

Ancestors:

Immediate Children:

Audio_Players.Cache.Mp3_Sound
Audio_Players.Cache.Sample_Sound

Primitive operations:

Construct
Objects.Construct (Inherited)
Objects.Delete (Inherited)
Objects.To_String (Inherited)

Types

A_Sound

type A_Sound is access all Sound'Class;

Subprograms & Entries

Is_Done

function Is_Done
( this: not null access Sound'Class ) return Boolean;

Play (abstract)

procedure Play
( this: access Sound;
looping: Boolean ) is abstract;

Poll (abstract)

procedure Poll
( this: access Sound ) is abstract;

Stop (abstract)

procedure Stop
( this: access Sound ) is abstract;

Load_Sound

function Load_Sound
( filename: String ) return A_Sound;
Loads a sound from the cache. An exception is raised on error.

Unload_Sound

procedure Unload_Sound
( snd: in out A_Sound );
Unloads a sound when it is no longer being played.