Copyright © 2005-2019 MultiMedia Soft

PlaySoundFromRecorderEx method

Previous pageReturn to chapter overviewNext page

Remarks

 

Activates the given instance of Audio Sound Recorder for .NET 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 Audio DJ Studio for .NET and Audio Sound Recorder for .NET, check the How to load and play sounds recorded by Audio Sound Recorder section.

 

 

Syntax

 

[Visual Basic]

Public Function PlaySoundFromRecorderEx (

nPlayerIndex as Int16,

hWndRecorderCtrl as IntPtr,

bMono as Boolean,

nInputDevice as Int16,

nInputChannel as Int16

) as enumErrorCodes


 

[C#]

public enumErrorCodes PlaySoundFromRecorderEx (

Int16 nPlayerIndex,

IntPtr hWndRecorderCtrl,

bool bMono,

Int16 nInputDevice,

Int16 nInputChannel

);


 

[C++]

public: enumErrorCodes PlaySoundFromRecorderEx (

Int16 nPlayerIndex,

IntPtr hWndRecorderCtrl,

bool bMono,

Int16 nInputDevice,

Int16 nInputChannel

);


 

 

 

Parameter

Description

 

 

nPlayerIndex

Number representing the zero-based index of the involved player

hWndRecorderCtrl

Window handle to the instance of the Audio Sound Recorder for .NET control

bMono

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

Supported values are the following:

Value

Meaning

false

Play sound data in Stereo

true

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 Audio Sound Recorder for .NET in order to know how many input devices are currently installed on the system and the GetInputDeviceDesc method of Audio Sound Recorder for .NET 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.NOERROR (0)

The method call was successful