PLAY_SOUND@

Platform

Win32, x64

Purpose

To send a sample to the audio output device.

Syntax

INTEGER FUNCTION PLAY_SOUND@( LEFT, RIGHT, SAMPLES )
INTEGER*2 LEFT(SAMPLES), RIGHT(SAMPLES)
INTEGER SAMPLES
PARAMETER 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@,
SOUND_PLAYING@, SOUND_RECORDING@

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited