DvmWave
Dali supports certain WAV file format. A WAV File consists of a header and the audio data. The header contains information such as sampling rate. The audio data itself can be stored in many different format. Currently only PCM, u-law and a-law format are supported.The WaveHdr abstraction is used to store information from the header. WaveHdr can be initilized by parsing, and it can be written to a bitstream using the encode primitive. (Tcl, C)
The audio samples is stored in Audio abstraction. To read WAV audio data from the bitstream, we cast the BitStream into a virtual Audio. Encoding of WAV data can be done by casting an Audio into a bitstream and writing the bitstream. ( Tcl, C )
A set of convenient functions for playing audio on Win32 platforms is also provided. ( Tcl, C )
Tcl specification
C API specification
Needs DvmBasic
Reading and Writing a WAV file [ tcl | C ]
Last Updated :
Copyright © 1997-1998 by Cornell University. See the file license.txt for information on usage and redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.