Copyright © 2005-2019 MultiMedia Soft

HwMixingEnable method

Previous pageReturn to chapter overviewNext page

Remarks

 

Enables/disables Hardware mixing for playback of the sound loaded into the given player.

 

If supported by the selected output device, DirectSound tries making use of hardware acceleration in order to improve performances and decrease CPU usage: with this method you can tell DirectSound to avoid using hardware acceleration. You can know if the output device, selected for the given player, supports Hardware acceleration through a call to the HwMixingIsSupported method.

 

 

Syntax

 

[Visual Basic]

Public Function HwMixingEnable (

nPlayerIndex as Int16,

bEnable as Boolean

) as enumErrorCodes


 

[C#]

public enumErrorCodes HwMixingEnable (

Int16 nPlayerIndex,

bool bEnable

);


 

[C++]

public: enumErrorCodes HwMixingEnable (

Int16 nPlayerIndex,

bool bEnable

);


 

 

Parameter

Description

 

 

nPlayerIndex

Time, expressed in milliseconds, to convert to a formatted string

bEnable

Boolean value that specifies the player to enable/disable the use of Hardware mixing.

Supported values are the following:

Value

Meaning

false

Doesn't use Hardware mixing

true

Uses Hardware mixing

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to get the error code

enumErrorCodes.ERR_NOERROR (0)

The method call was successful