WRITE_WAV_FILE@
Platform
|
Win32, x64
|
Purpose
|
To store any recorded data.
|
Syntax
|
SUBROUTINE WRITE_WAV_FILE@( FILENAME, CHAN, SAMPLES,
+ LEFT, RIGHT )
CHARACTER*(*) FILENAME
INTEGER CHAN, SAMPLES
INTEGER*2 LEFT(SAMPLES), RIGHT(SAMPLES)
PARAMETER SAMPLES
|
Description
|
The data contained in LEFTand RIGHT is written to disk in wave file format.
FILENAME should be set to the desired file name. CHAN can be either 1 (mono) or
2 (stereo). SAMPLES is the length of both the LEFTand RIGHT data arrays (they
should be identical).
This routine writes a whole WAV file in one go, so it must be of a size that can
fit into memory.
|
See also
|
SOUND_RECORDING@, RECORD_SOUND@,
SOUND_PLAYING@,
PLAY_SOUND_RESOURCE@, PLAY_SOUND@,
SET_SOUND_SAMPLE_RATE@
|
|
|