AUDIO ABSTRACTIONS
- Audio abstractions are built on analog principles:
- Collections of samples of fixed size are processed at each object activation.
- Audio players interface the AudioFile (AF) protocol:
- AF offers:
- device-independency to applications:
- network audio devices sharable by concurrent and distributed applications,
- a full visibility over sample-level audio synchronization.
Home
Example:
# audio_hello: Create an audio decoder and player,
# resume the player and enter an activation loop.
proc audio_hello {} {
audio_decoder ad -in hello.au
audio_player ap -in ad
ap resume
while { [ad decode] == 0 && [ap play] == 0 } { update }
}