Platform |
Win32, x64 |
Purpose |
To send a sample to the audio output device. |
Syntax |
INTEGER FUNCTION PLAY_SOUND@( LEFT, RIGHT, SAMPLES ) |
Description |
LEFT and RIGHT are arrays that contain the 16 bit sample data. The number of samples is SAMPLES. You should check the values returned by SOUND_PLAYING@ and SOUND_RECORDING@ so that a call is not made to this routine until the sound device is idle. |
Return value |
Returns 1 for success and a zero on failure |
See also |
WRITE_WAV_FILE@, PLAY_SOUND_RESOURCE@,
RECORD_SOUND@, |