Copyright © 2005-2018 MultiMedia Soft

StreamOutputSpeakersRearAndCenterSwap method

Previous pageReturn to chapter overviewNext page



Swaps the Rear and Center speakers for the given player: some specific output device (for example the Maya EX7 sound card) will invert the Rear and Center speakers assignment by default so calling this method could be of help in certain situations.


This method will also work when the output device is an ASIO device by inverting the channels pair 3 and 4 with channels pair 5 and 6.


A call to this method will have no effect if the involved player has been added to a custom stream mixer through the StreamMixerPlayerAdd method.


For further details about speakers assignment, take a look to the How to work with multiple output devices and speakers section.





[Visual Basic]

Public StreamOutputSpeakersRearAndCenterSwap (

nPlayerIndex as Int16

) as enumErrorCodes



public enumErrorCodes StreamOutputSpeakersRearAndCenterSwap (

Int16 nPlayerIndex




public: enumErrorCodes StreamOutputSpeakersRearAndCenterSwap (

Int16 nPlayerIndex









Number representing the zero-based index of the involved player



Return value







Negative value

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

enumErrorCodes.NOERROR (0)

The method call was successful.