OPEN_WAV_FILE_READ@

Platform

Win32, x64

Purpose

To open a WAV file for reading in sections.

Syntax

 INTEGER(7) FUNCTION OPEN_WAV_FILE_READ@(FILE,N_CHANNELS,N_SAMPLES,SAMPLE_RATE)
 CHARACTER(*) FILE
 INTEGER N_CHANNELS,N_SAMPLES,SAMPLE_RATE

Description

This routine opens a simple (uncompressed) .WAV file so that its contents can be read with a series of calls to WAV_FILE_READ@. The number of samples and the sample rate are returned by the function. WAV files should be closed using CLOSE_WAV_FILE@

Return value

The return value is the handle to be passed to subsequent sound function calls. A zero value indicates a corrupt WAV file or an unsupported WAV format.

See also

OPEN_WAV_FILE_WRITE@

 

 

Basket
Empty
 
Copyright © 1999-2023 Silverfrost Limited