Silverfrost Logo About Us | Contact Us
 

RECORD_SOUND@

Platform

Win32(ClearWin+)

Purpose

To record sound from the sound input device.

Syntax

INTEGER RECORD_SOUND@( LEFT, RIGHT, SAMPLES, FLAG )
INTEGER*2 LEFT(SAMPLES), RIGHT(SAMPLES)
INTEGER SAMPLES, FLAG
PARAMETER SAMPLES

Description

LEFT and RIGHT are arrays of INTEGER*2 16 bit data . They will be filled with sound data so enough memory should be allocated to them which should be the same value as SAMPLES. FLAG is a return value that is currently unused. You should check the SOUND_PLAYING@ and SOUND_RECORDING@ results so that a call is not made to this routine until the sound device is idle.

Return value

Returns 1 for success or zero on failure.

See also

WRITE_WAV_FILE@, PLAY_SOUND@, SOUND_PLAYING@, SOUND_RECORDING@,
PLAY_SOUND_RESOURCE@

 

 

Copyright © 1999-2017 Silverfrost Limited