Effects.DirectXEffectParamsSetCompressor method |
|
Remarks
Sets parameters related to the Compressor effect. The current parameters for the chosen effect can be retrieved using the Effects.DirectXEffectParamsGetCompressor method.
DirectX effects requires the availability of DirectX version 8 or higher on the target system and can be applied only if the IsDirectX8Available method returns TRUE.
See the How to apply special effects to a playing sound section for further details.
Syntax
[Visual Basic] Public Function DirectXEffectParamsSetCompressor ( nPlayerIndex as Int16, ByRef fx as Microsoft.DirectX.DirectSound.EffectsCompressor ) as enumErrorCodes |
[C#] public enumErrorCodes DirectXEffectParamsSetCompressor ( Int16 nPlayerIndex, ref Microsoft.DirectX.DirectSound.EffectsCompressor fx ); |
[C++] public: enumErrorCodes DirectXEffectParamsSetCompressor ( Int16 nPlayerIndex, Microsoft::DirectX::DirectSound::EffectsCompressor __gc *fx ); |
Parameter |
Description |
||||||||||||||||
|
|
||||||||||||||||
nPlayerIndex |
Number representing the zero-based index of the involved player |
||||||||||||||||
fx |
Effect structure containing parameters to apply.
|
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred (see the LastError property for further error details) Note that if you should fill the fx structure with values out of range, you could get an exception of type ArgumentException |
enumErrorCodes.NOERROR (0) |
The method call was successful. |