Copyright © 2005-2023 MultiMedia Soft

StreamMixerGetIdFromOutput method

Previous pageReturn to chapter overviewNext page

Remarks

 

Given the index of an output device returns the unique identifier of its internal stream mixer that was automatically created and linked to the output device after a call to the InitDriversType method having the nDriverType  parameter set to a value different from DRIVER_TYPE_DIRECT_SOUND.

 

Through the unique identifier of the stream mixer you have the possibility to apply special effects to the mixed stream (as seen inside the How to use custom Stream Mixers tutorial) just before is sent to the physical output device.

 

See the How to manage audio flow through WASAPI and How to manage ASIO drivers tutorials for further details.

 

 

Syntax

 

[Visual Basic]

Public StreamMixerGetIdFromOutput (

nOutputIndex as Int16

) as Int16


 

[C#]

public Int16 StreamMixerGetIdFromOutput (

Int16 nOutputIndex

);


 

[C++]

public: Int16 StreamMixerGetIdFromOutput (

Int16 nOutputIndex

);


 

 

Parameter

Description

 

 

nOutputIndex

Number representing the zero-based index of the involved output device

 

 

Return value

 

Value

Meaning

 

 

Negative value

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

Value > 0

The unique identifier of the stream mixer internal to the output device