RESPITE: The CASA Toolkit Page: Documentation: Block Library Index: AUInputFile


Read sample data from a AU format file. The file name is supplied as a parameter. A file path and file extension may also be supplied.

Two AU formats are supported: 16-bit linear and 8-bit $\mu$-law. The format is determined from the file header. The header also determines whether the data is mono or stereo. In the case of stereo data, the block will make for itself a separate output socket for each channel - the left channel is sent to out1 and the right channel to out2.

Inputs Meaning Sample 1-D frame $\ge$2-D frame
No inputs

Outputs Meaning
out1 signal channel 1
out2 signal channel 2 (if stereo)

Parameters Type Default Meaning
FILE_NAME String - The file to open
FILE_PATH String "" Directory path to prefix to filename
FILE_EXTENSION String "" Extension to postfix to filename
DURATION Integer 0 (0=whole file) Number of samples to read

Documentation for CTKv1.1.4 - Last modified: Wed Jun 27 16:17:57 BST 2001