Tao.Sdl SDK Documentation

SdlMixer.Mix_SetReverseStereo Method 

Swap stereo left and right

[Visual Basic]
Public Shared Function Mix_SetReverseStereo( _
   ByVal channel As Integer, _
   ByVal flip As Integer _
) As Integer
[C#]
public static int Mix_SetReverseStereo(
   int channel,
   int flip
);

Parameters

channel
Channel number to register this effect on. Use MIX_CHANNEL_POST to process the postmix stream.
flip
Must be non-zero to work, means nothing to the effect processor itself. set to zero to unregister the effect from channel.

Return Value

Zero on errors, such as an invalid channel, or if Mix_RegisterEffect failed.

Remarks

Simple reverse stereo, swaps left and right channel sound.

NOTE: Using a flip of 0, will cause the effect to unregister itself from channel. You cannot unregister it any other way, unless you use Mix_UnregisterAllEffects on the channel.

Binds to C-function in SDL_mixer.h

int Mix_SetReverseStereo(int channel, int flip)
            

Example

            // set the total mixer output to be reverse stereo
                    if(!Mix_SetReverseStereo(MIX_CHANNEL_POST, 1))
                {
                    printf("Mix_SetReverseStereo: %s\n", Mix_GetError());
                    // no reverse stereo, is it ok?
                }
            

See Also

SdlMixer Class | Tao.Sdl Namespace | Mix_UnregisterAllEffects