Outdated egg!
This is an egg for CHICKEN 4, the unsupported old release. You're almost certainly looking for the CHICKEN 5 version of this egg, if it exists.
If it does not exist, there may be equivalent functionality provided by another egg; have a look at the egg index. Otherwise, please consider porting this egg to the current version of CHICKEN.
allegro
This document pertains to audio related methods found in the Allegro egg.
Please see the main [allegro] wiki page for more information.
TOC »
Constants
- audio-pan-none
Enums
audio-depth
- audio-depth->int audio-depthprocedure
{audio-depth may be one of the following symbols:
- int8
- int16
- int24
- float32
- unsigned
- uint8
- uint16
- uint24
- int->audio-depth integerprocedure
channel-configuration
- channel-configuration->int channel-configurationprocedure
channel-configuration may be one of the following symbols:
- one
- two
- three
- four
- five-one
- six-one
- seven-one
- int->channel-configuration integerprocedure
mixer-quality
- mixer-quality->int mixer-qualityprocedure
mixer-quality may be one of the following symbols:
- point
- linear
- int->mixer-quality integerprocedure
playmode
- playmode->int playmodeprocedure
playmode may be one of the following symbols:
- once
- loop
- bidirectional
- int->playmode integerprocedure
Records
audio-stream
- audio-streamrecord
mixer
- mixerrecord
sample
- samplerecord
sample-id
- sample-idrecord
sample-instance
- sample-instancerecord
voice
- voicerecord
Functions
Audio
- (make-sample* (blob buffer) (unsigned-integer samples) (unsigned-integer frequency) audio-depth channel-configuration (bool free-buffer))procedure
Implements al_create_sample.
- (make-sample (blob buffer) (unsigned-integer samples) (unsigned-integer frequency) audio-depth channel-configuration (bool free-buffer))procedure
Implements al_create_sample, with (free-sample!) declared as a finalizer.
- free-sample! sampleprocedure
Implements al_destroy_sample.
- make-sample-instance* sampleprocedure
Implements al_create_sample_instance.
- make-sample-instance sampleprocedure
Implements al_create_sample_instance, with (free-sample-instance!) declared as a finalizer.
- free-sample-instance! sampleprocedure
Implements al_destroy_sample_instance.
- sample-frequency sampleprocedure
Implements al_get_sample_frequenecy.
- sample-length sampleprocedure
Implements al_get_sample_length.
- sample-depth sampleprocedure
Implements al_get_sample_depth.
- sample-channels sampleprocedure
Implements al_get_sample_channels.
- sample-instance-frequency sample-instanceprocedure
Implements al_get_sample_instance_frequency.
- sample-instance-length sample-instanceprocedure
Implements al_get_sample_instance_length.
- sample-instance-position sample-instanceprocedure
Implements al_get_sample_instance-position.
- sample-instance-speed sample-instanceprocedure
Implements al_get_sample_instance_speed.
- sample-instance-gain sample-instanceprocedure
Implements al_get_sample_instance_gain.
- sample-instance-pan sample-instanceprocedure
Implements al_get_sample_instance_pan.
- sample-instance-time sample-instanceprocedure
Implements al_get_sample_instance_time.
- sample-instance-depth sample-instanceprocedure
Implements al_get_sample_instance_depth.
- sample-instance-channels sample-instanceprocedure
Implements al_get_sample_instance_channels.
- sample-instance-playmode sample-instanceprocedure
Implements al_get_sample_instance_playmode.
- sample-instance-playing? sample-instanceprocedure
Implements al_get_sample_instance_playing.
- sample-instance-attached? sample-instanceprocedure
Implements al_get_sample_instance_attached.
- sample-instance-position-set! sample-instance unsigned-integerprocedure
Implements al_set_sample_instance_position.
- sample-instance-length-set! sample-instance unsigned-integerprocedure
Implements al_set_sample_instance_length.
- sample-instance-speed-set! sample-instance floatprocedure
Implements al_set_sample_instance_speed.
- sample-instance-gain-set! sample-instance floatprocedure
Implements al_set_sample_instance_gain.
- sample-instance-pan-set! sample-instance floatprocedure
Implements al_set_sample_instance_pan.
- sample-instance-playmode-set! sample-instance playmodeprocedure
Implements al_set_sample_instance_playmode.
- sample-instance-playing-set! sample-instance boolprocedure
Implements al_set_sample_instance_playing.
- sample-instance-detach! sample-instanceprocedure
Implements al_detach_sample_instance.
- sample-instance-sample sample-instanceprocedure
Implements al_get_sample.
- sample-instance-sample-set! sample-instance sampleprocedure
Implements al_set_sample
- sample-instance-play sample-instanceprocedure
Implements al_play_sample_instance.
- sample-instance-stop sample-instanceprocedure
Implements al_stop_sample_instance.
- (make-audio-stream* (integer buffer-count) (unsigned-integer samples) (unsigned-integer frequency) audio-depth channel-configuration)procedure
Implements al_create_audio_stream.
- (make-audio-stream (integer buffer-count) (unsigned-integer samples) (unsigned-integer frequency) audio-depth channel-configuration)procedure
Implements al_create_audio_stream, with (free-audio-stream!) declared as a finalizer.
- free-audio-stream! audio-streamprocedure
Implements al_destroy_audio_stream.
- audio-stram-drain audio-streamprocedure
Implements al_drain_audio_stream.
- audio-stream-frequency audio-streamprocedure
Implements al_get_audio_stream_frequency.
- audio-stream-length audio-streamprocedure
Implements al_get_audio_stream_length.
- audio-stream-fragments audio-streamprocedure
Implements al_get_available_audio_stream_fragments.
- audio-stream-available-fragments audio-streamprocedure
Implements al_get_available_audio_stream_fragments.
- audio-stream-speed audio-streamprocedure
Implements al_get_audio_stream_speed.
- audio-stream-gain audio-streamprocedure
Implements al_get_audio_stream_gain.
- audio-stream-channels audio-streamprocedure
Implements al_get_audio_stream_channels.
- audio-stream-depth audio-streamprocedure
Implements al_get_audio_stream_depth.
- audio-stream-playmode audio-streamprocedure
Implements al_get_audio_stream_playmode.
- audio-stream-playing? audio-streamprocedure
Implements al_get_audio_stream_playing.
- audio-stream-attached? audio-streamprocedure
Implements al_get_audio_stream_attached.
- audio-stream-fragment audio-streamprocedure
Implements al_get_audio_stream_fragment.
- audio-stream-speed-set! audio-stream floatprocedure
Implements al_set_audio_stream_speed.
- audio-stream-gain-set! audio-stream floatprocedure
Implements al_set_audio_stream_gain.
- audio-stream-pan-set! audio-stream floatprocedure
Implements al_set_audio_stream_pan.
- audio-stream-playmode-set! audio-stream playmodeprocedure
Implements al_set_audio_stream_playmode.
- audio-stream-playing-set! audio-stream boolprocedure
Implements al_set_audio_stream_playing.
- audio-stream-detach! audio-streamprocedure
Implements al_detach_audio_stream.
- audio-stream-fragment-set! audio-stream c-pointerprocedure
Implements al_set_audio_stream_fragment.
- audio-stream-rewind! audio-streamprocedure
Implements al_rewind_audio_stream.
- audio-stream-seek-seconds! audio-stream doubleprocedure
Implements al_seek_audio_stream_secs.
- audio-stream-position-seconds audio-streamprocedure
Impements al_get_audio_stream_position_secs.
- audio-stream-length-seconds audio-streamprocedure
Implements al_get_audio_length_secs.
- (audio-stream-loop-set! audio-stream (double start-seconds) (double end-seconds))procedure
Implements al_set_audio_stream_loop_secs.
- audio-stream-event-source audio-streamprocedure
Implements al_get_audio_stream_event_source.
- (make-mixer* (unsigned-integer frequency) audio-depth channel-configuration)procedure
Implements al_create_mixer.
- (make-mixer (unsigned-integer frequency) audio-depth channel-configuration)procedure
Implements al_create_mixer, with (free-mixer!) declared as a finalizer.
- free-mixer! mixerprocedure
Implements al_destroy_mixer.
- sample-instance-attach-to-mixer! sample-instance mixerprocedure
Implements al_attach_sample_instance_to_mixer.
- audio-stream-attach-to-mixer! audio-stream mixerprocedure
Implements al_attach_audio_stram_to_mixer.
- mixer-attach-to-mixer! mixer mixerprocedure
Implements al_attach_mixer_to_mixer.
- (mixer-postprocess-callback-set! mixer (function void (c-pointer unsigned-integer32 c-pointer)) (c-pointer data))procedure
Implements al_set_mixer_postprocess_callback.
- mixer-frequency mixerprocedure
Implements al_get_mixer_frequency.
- mixer-channels mixerprocedure
Implements al_get_mixer_channels.
- mixer-depth mixerprocedure
Implements al_get_mixer_depth.
- mixer-quality mixerprocedure
Implements al_get_mixer_quality.
- mixer-playing? mixerprocedure
Implements al_get_mixer_playing.
- mixer-attached? mixerprocedure
Implements al_get_mixer_attached.
- mixer-frequency-set! mixer unsigned-integerprocedure
Implements al_set_mixer_frequency.
- mixer-quality-set! mixer mixer-qualityprocedure
Implements al_set_mixer_quality.
- mixer-playing-set! mixer boolprocedure
Implements al_set_mixer_playing.
- mixer-detach! mixerprocedure
Implements al_detach_mixer.
- (make-voice* (unsigned-integer frequency) audio-depth channel-configuration)procedure
Implements al_create_voice.
- (make-voice (unsigned-integer frequency) audio-depth channel-configuration)procedure
Implements al_create_voice, with (free-voice!) declared as a finalizer.
- free-voice! voiceprocedure
Implements al_destroy_voice.
- sample-instance-attach-to-voice! sample-instance voiceprocedure
Implements al_attach_sample_instance_to_voice.
- audio-stream-attach-to-voice! audio-stram voiceprocedure
Implements al_attach_audio_stream_to_voice.
- mixer-attach-to-voice! mixer voiceprocedure
Implements al_attach_mixer_to_voice.
- voice-detach! voiceprocedure
Implements al_detach_voice.
- voice-frequency voiceprocedure
Implements al_get_voice_frequency.
- voice-position voiceprocedure
Implements al_get_voice_position voice)</procedure>
- voice-channels voiceprocedure
Implements al_get_voice_channels.
- voice-depth voiceprocedure
Implements al_get_voice_depth.
- voice-playing? voiceprocedure
Implements al_get_voice_playing.
- voice-position-set! voice unsigned-integerprocedure
Implements al_set_voice_position.
- voice-playing-set! voice boolprocedure
Implements al_set_voice_playing.
- audio-addon-installprocedure
Implements al_install_audio.
- audio-addon-uninstallprocedure
Implements al_uninstall_audio.
- audio-addon-installed?procedure
Implements al_is_audio_installed.
- audio-addon-versionprocedure
Implements al_get_allegro_audio_version.
- channel-configuration-count channel-configurationprocedure
Implements al_get_channel_count.
- audio-depth-size audio-depthprocedure
Implements al_get_audio_depth_size.
- default-mixerprocedure
Implements al_get_default_mixer.
- default-mixer-set! mixerprocedure
Implements al_set_default_mixer.
- default-mixer-restore!procedure
Implements al_restore_default_mixer.
- (sample-play sample (float gain) (float pan) (float speed) playmode sample-id)procedure
Implements al_play_sample.
The Sample ID is written to the provided sample-id struct.
- sample-stop sample-idprocedure
Implements al_stop_sample.
- reserve-samples integerprocedure
Implements al_reserve_samples.
- stop-all-samplesprocedure
Implements al_stop_samples.
- (register-sample-loader (string extension) (function sample ((const string))))procedure
Implements al_register_sample_loader.
- (register-sample-saver (string extension) (function bool ((const c-string) sample)))procedure
Implements al_register_sample_saver.
- (register-audio-stream-loader (string extension) (function audio-stream ((const string) size_t unsigned-integer32)))procedure
Implements al_register_audio_stream_loader.
- (register-sample-file-loader (string extension) (function sample (file)))procedure
Implements al_register_sample_loader_f.
- (register-sample-file-saver (string extension) (function bool (file sample)))procedure
Implements al_register_sample_saver_f.
- (register-audio-stream-file-loader (string extension) (function audio-stream (file size_t unsigned-integer)))procedure
Implements al_register_audio_stream_loader_f.
- load-sample* stringprocedure
Implements al_load_sample.
- load-sample stringprocedure
Implements al_load_sample, with (free-sample!) declared as a finalizer.
- (load-audio-stream* string (integer buffer-count) (unsigned-integer samples))procedure
Implements al_load_audio_stream.
- (load-audio-stream string (integer buffer-count) (unsigned-integer samples))procedure
Implements al_load_audio_stream, with (free-audio-stream!) declared as a finalizer.
- (load-audio-stream-from-file* file (string identity) (integer buffer-count) (unsigned-integer samples))procedure
Implements al_load_audio_straem_from_file.
- (load-audio-stream-from-file file (string identity) (integer buffer-count) (unsigned-integer samples))procedure
Implements al_load_audio_straem_from_file, with (free-audio-stream!) declared as a finalizer.
- (load-sample-from-file* file (string identity))procedure
Implements al_load_sample_f.
- (load-sample-from-file file (string identity))procedure
Implements al_load_sample_f, with (free-sample!) declared as a finalizer.
- (sample-save-to-file sample file (string identity))procedure
Implements al_save_sample_f.
- (sample-save sample (string filename))procedure
Implements al_save_sample.
Audio Codec Addon
- acodec-addon-initprocedure
Implements al_init_acodec_addon.
- acodec-addon-versionprocedure
Implements al_get_allegro_acodec_version.