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.

Syntax


Result = QUERY_WAV ( Filename[, Info] )

Return Value


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.

Arguments


Filename

A scalar string containing the full pathname of the .WAV file to read.

Info

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.

Keywords


None.

Version History


5.3

Introduced