The QUERY_WAV function checks that the file is actually a .WAV file and that the READ_WAV function can read the data in the file. Optionally, it can return additional information about the data in the file.
Result = QUERY_WAV ( Filename[, Info] )
This routine returns a long with the value of 1 (one) if the query was successful (and the file type was correct) or 0 (zero) on failure.
A scalar string containing the full pathname of the .WAV file to read.
An anonymous structure containing information about the data in the file. The fields are defined as:
|
Tag
|
Type
|
Definition
|
|---|---|---|
|
CHANNELS
|
INT
|
Number of data channels in the file.
|
|
SAMPLES_PER_SEC
|
LONG
|
Data sampling rate in samples per second.
|
|
BITS_PER_SAMPLE
|
INT
|
Number of valid bits in the data.
|
None.
Introduced: 5.3