Index

Package: Allegro.Digital_Samples

Description

package Allegro.Digital_Samples is

Types

A_Sample

type A_Sample is access all Sample;

References:

allegro-digital_samples.ads:12:10 (declaration)
allegro-audio_streams.ads:36:24 (reference)
allegro-digital_samples.adb:4:44 (reference)
allegro-digital_samples.adb:6:43 (reference)
allegro-digital_samples.adb:18:54 (reference)
allegro-digital_samples.adb:20:66 (reference)
allegro-digital_samples.adb:29:51 (reference)
allegro-digital_samples.adb:31:63 (reference)
allegro-digital_samples.adb:40:51 (reference)
allegro-digital_samples.adb:42:63 (reference)
allegro-digital_samples.adb:66:61 (reference)
allegro-digital_samples.adb:68:64 (reference)
allegro-digital_samples.ads:15:66 (reference)
allegro-digital_samples.ads:18:64 (reference)
allegro-digital_samples.ads:28:48 (reference)
allegro-digital_samples.ads:34:45 (reference)
allegro-digital_samples.ads:36:72 (reference)
allegro-digital_samples.ads:40:44 (reference)
allegro-digital_samples.ads:42:54 (reference)
allegro-digital_samples.ads:44:51 (reference)
allegro-digital_samples.ads:46:60 (reference)
allegro-digital_samples.ads:48:51 (reference)
allegro-digital_samples.ads:50:60 (reference)
allegro-digital_samples.ads:52:43 (reference)
allegro-digital_samples.ads:54:45 (reference)
allegro-digital_samples.ads:60:65 (reference)
allegro-digital_samples.ads:66:61 (reference)
allegro-digital_samples.ads:68:43 (reference)
allegro-digital_samples.ads:72:52 (reference)
almp3.ads:201:68 (reference)
audio_players-cache.adb:176:80 (reference)
audio_players-cache.ads:83:22 (reference)
audio_players-cache.ads:98:80 (reference)

A_Sample_Loader

type A_Sample_Loader is
        access function( filename : C.Strings.chars_ptr ) return A_Sample;

References:

allegro-digital_samples.ads:14:10 (declaration)
allegro-digital_samples.adb:52:49 (reference)
allegro-digital_samples.adb:56:55 (reference)
allegro-digital_samples.ads:63:49 (reference)
allegro-digital_samples.ads:134:27 (reference)

A_Sample_Saver

type A_Sample_Saver is
        access function( filename : C.Strings.chars_ptr; spl : A_Sample ) return Integer;

References:

allegro-digital_samples.ads:17:10 (declaration)
allegro-digital_samples.adb:53:49 (reference)
allegro-digital_samples.adb:57:55 (reference)
allegro-digital_samples.ads:64:49 (reference)
allegro-digital_samples.ads:135:27 (reference)

Volume_Type

type Volume_Type is range 0..255;

References:

allegro-digital_samples.ads:20:10 (declaration)
allegro-audio_streams.ads:26:42 (reference)
allegro-digital_samples.ads:21:9 (reference)
allegro-digital_samples.ads:29:39 (reference)
allegro-digital_samples.ads:55:36 (reference)
allegro-digital_samples.ads:80:66 (reference)
allegro-digital_samples.ads:90:59 (reference)
almp3.adb:41:40 (reference)
almp3.adb:48:46 (reference)
almp3.ads:70:37 (reference)
almp3.ads:88:40 (reference)
almp3.ads:130:36 (reference)
almp3.ads:257:43 (reference)
almp3.ads:265:46 (reference)
almp3.ads:277:41 (reference)

Pan_Type

type Pan_Type is range 0..255;

References:

allegro-digital_samples.ads:23:10 (declaration)
allegro-audio_streams.ads:27:42 (reference)
allegro-digital_samples.ads:24:9 (reference)
allegro-digital_samples.ads:30:39 (reference)
allegro-digital_samples.ads:56:36 (reference)
allegro-digital_samples.ads:104:53 (reference)
allegro-digital_samples.ads:106:64 (reference)
almp3.adb:42:40 (reference)
almp3.adb:49:46 (reference)
almp3.ads:71:37 (reference)
almp3.ads:89:40 (reference)
almp3.ads:131:36 (reference)
almp3.ads:258:43 (reference)
almp3.ads:266:46 (reference)
almp3.ads:278:41 (reference)

Subprograms & Entries

Adjust_Sample

procedure Adjust_Sample
( spl: not null A_Sample;
vol: Volume_Type;
pan: Pan_Type;
freq: Integer;
loopit: Integer );

Allocate_Voice

function Allocate_Voice
( spl: not null A_Sample )
return Integer;

Create_Sample

function Create_Sample
( bits, stereo, freq, len: Integer )
return A_Sample;

Deallocate_Voice

procedure Deallocate_Voice
( voice: Integer );

References:

allegro-digital_samples.ads:38:15 (declaration)
allegro-digital_samples.ads:140:23 (body)
audio_players-cache.adb:337:13 (reference)

Called by:

Audio_Players.Cache.Stop defined at audio_players-cache.ads:151:15

Destroy_Sample

procedure Destroy_Sample
( spl: in out A_Sample );

References:

allegro-digital_samples.ads:40:15 (declaration)
allegro-digital_samples.adb:4:15 (body)
allegro-digital_samples.adb:14:9 (label)
audio_players-cache.adb:170:9 (reference)

Called by:

Audio_Players.Cache.Delete defined at audio_players-cache.ads:96:15

Calls:

Allegro.Digital_Samples.Destroy_Sample.C_Destroy_Sample defined at allegro-digital_samples.adb:6:19

Load_Sample

function Load_Sample
( filename: String )
return A_Sample;

References:

allegro-digital_samples.ads:42:14 (declaration)
allegro-digital_samples.adb:18:14 (body)
allegro-digital_samples.adb:25:9 (label)

Calls:

Allegro.Digital_Samples.Load_Sample.C_Load_Sample defined at allegro-digital_samples.adb:20:18
To_C defined at i-c.ads:84:13

Load_Voc

function Load_Voc
( filename: String )
return A_Sample;

References:

allegro-digital_samples.ads:44:14 (declaration)
allegro-digital_samples.adb:29:14 (body)
allegro-digital_samples.adb:36:9 (label)

Calls:

Allegro.Digital_Samples.Load_Voc.C_Load_Voc defined at allegro-digital_samples.adb:31:18
To_C defined at i-c.ads:84:13

Load_Voc_pf

function Load_Voc_pf
( f: not null A_Packfile )
return A_Sample;

References:

allegro-digital_samples.ads:46:14 (declaration)
allegro-digital_samples.ads:141:23 (body)
audio_players-cache.adb:149:28 (reference)

Called by:

Audio_Players.Cache.Construct defined at audio_players-cache.ads:90:15

Load_Wav

function Load_Wav
( filename: String )
return A_Sample;

References:

allegro-digital_samples.ads:48:14 (declaration)
allegro-digital_samples.adb:40:14 (body)
allegro-digital_samples.adb:47:9 (label)

Calls:

Allegro.Digital_Samples.Load_Wav.C_Load_Wav defined at allegro-digital_samples.adb:42:18
To_C defined at i-c.ads:84:13

Load_Wav_pf

function Load_Wav_pf
( f: not null A_Packfile )
return A_Sample;

References:

allegro-digital_samples.ads:50:14 (declaration)
allegro-digital_samples.ads:142:23 (body)
audio_players-cache.adb:147:28 (reference)

Called by:

Audio_Players.Cache.Construct defined at audio_players-cache.ads:90:15

Lock_Sample

procedure Lock_Sample
( spl: not null A_Sample );

Play_Sample

function Play_Sample
( spl: not null A_Sample;
vol: Volume_Type;
pan: Pan_Type;
freq: Integer;
loopit: Integer )
return Integer;

References:

allegro-digital_samples.ads:54:14 (declaration)
allegro-digital_samples.ads:144:23 (body)
audio_players-cache.adb:312:27 (reference)

Called by:

Audio_Players.Cache.Play defined at audio_players-cache.ads:147:15

Reallocate_Voice

procedure Reallocate_Voice
( voice: Integer;
spl: not null A_Sample );

Register_Sample_File_Type

procedure Register_Sample_File_Type
( ext: String;
load: A_Sample_Loader;
save: A_Sample_Saver );

References:

allegro-digital_samples.ads:62:15 (declaration)
allegro-digital_samples.adb:51:15 (body)
allegro-digital_samples.adb:62:9 (label)

Calls:

Allegro.Digital_Samples.Register_Sample_File_Type.C_Register_Sample_File_Type defined at allegro-digital_samples.adb:55:19
To_C defined at i-c.ads:84:13

Save_Sample

function Save_Sample
( filename: String;
spl: not null A_Sample )
return Boolean;

References:

allegro-digital_samples.ads:66:14 (declaration)
allegro-digital_samples.adb:66:14 (body)
allegro-digital_samples.adb:73:9 (label)

Calls:

Allegro.Digital_Samples.Save_Sample.C_Save_Sample defined at allegro-digital_samples.adb:68:18
To_C defined at i-c.ads:84:13

Stop_Sample

procedure Stop_Sample
( spl: not null A_Sample );

Release_Voice

procedure Release_Voice
( voice: Integer );

Voice_Check

function Voice_Check
( voice: Integer )
return A_Sample;

References:

allegro-digital_samples.ads:72:14 (declaration)
allegro-digital_samples.ads:148:23 (body)
audio_players-cache.adb:327:26 (reference)

Called by:

Audio_Players.Cache.Poll defined at audio_players-cache.ads:149:15

Voice_Get_Frequency

function Voice_Get_Frequency
( voice: Integer )
return Integer;

Voice_Get_Position

function Voice_Get_Position
( voice: Integer )
return Integer;

Voice_Get_Volume

function Voice_Get_Volume
( voice: Integer )
return Integer;

Voice_Ramp_Volume

procedure Voice_Ramp_Volume
( voice, time: Integer;
endvol: Volume_Type );

Voice_Set_Frequency

procedure Voice_Set_Frequency
( voice, frequency: Integer );

Voice_Set_Playmode

procedure Voice_Set_Playmode
( voice, playmode: Integer );

Voice_Set_Position

procedure Voice_Set_Position
( voice: Integer;
position: Integer );

Voice_Set_Priority

procedure Voice_Set_Priority
( voice, priority: Integer );

Voice_Set_Volume

procedure Voice_Set_Volume
( voice: Integer;
volume: Volume_Type );

Voice_Start

procedure Voice_Start
( voice: Integer );

Voice_Stop

procedure Voice_Stop
( voice: Integer );

Voice_Stop_Volumeramp

procedure Voice_Stop_Volumeramp
( voice: Integer );

Voice_Sweep_Frequency

procedure Voice_Sweep_Frequency
( voice, time, endfreq: Integer );

Voice_Stop_Frequency_Sweep

procedure Voice_Stop_Frequency_Sweep
( voice: Integer );

Voice_Get_Pan

function Voice_Get_Pan
( voice: Integer )
return Integer;

Voice_Set_Pan

procedure Voice_Set_Pan
( voice: Integer;
pan: Pan_Type );

Voice_Sweep_Pan

procedure Voice_Sweep_Pan
( voice, time: Integer;
endpan: Pan_Type );

Voice_Stop_Pan_Sweep

procedure Voice_Stop_Pan_Sweep
( voice: Integer );

Voice_Set_Echo

procedure Voice_Set_Echo
( voice, strength, thedelay: Integer );

Voice_Set_Tremolo

procedure Voice_Set_Tremolo
( voice, rate, depth: Integer );

Voice_Set_Vibrato

procedure Voice_Set_Vibrato
( voice, rate, depth: Integer );