Copyright © 2001-2019 MultiMedia Soft

PlaySoundFromRecorderEx method

Previous pageReturn to chapter overviewNext page

Remarks

 

Activates the given instance of Active Sound Recorder and plays in real time sound data coming from the recorder.

 

In order to stop playing sound data coming from a recorder instance, always use the StopSoundFromRecorder method instead of the StopSound method..

 

A successful call to this method will fire the SoundPlaying event.

 

For further details about the integration between Active DJ Studio and Active Sound Recorder, check the How to load and play sounds recorded by Active Sound Recorder section.

 

 

Syntax

 

[Visual Basic]

control.PlaySoundFromRecorderEx (

nPlayer as Integer,

hWndRecorderCtrl as OLE_HANDLE,

bMono as enumBoolean,

nInputDevice as Integer,

nInputChannel as Integer

) as enumErrorCodes


 

[C++]

short control.PlaySoundFromRecorderEx (

short nPlayer,

OLE_HANDLE hWndRecorderCtrl,

short bMono,

short nInputDevice,

short nInputChannel

);


 

 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the involved player

hWndRecorderCtrl

Window handle to the instance of Active Sound Recorder control

bMono

Boolean value that specifies to play incoming sound data in Mono or Stereo.

Supported values are the following:

Mnemonic constant

Value

Meaning

BOOL_FALSE

0

Play sound data in Stereo

BOOL_TRUE

1

Play sound data in Mono: use this setting if you want to apply EAX effects.

nInputDevice

Number representing the zero-based index of the DirectSound input device (sound card) that will be used for recording. Use the value returned by the GetInputDevicesCount method of Active Sound Recorder in order to know how many input devices are currently installed on the system and the GetInputDeviceDesc method of Active Sound Recorder in order to retrieve the friendly name of each input device.

nInputChannel

Number representing the zero-based index of the input channel (Microphone, Stereo Mix, Line-In, etc.) that will be used for recording on the input device set through the nInputDevice parameter (use -1 for setting the system default input channel).

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.ERR_NOERROR (0)

The method call was successful