Copyright © 2001-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]

control.StreamOutputSpeakersRearAndCenterSwap (

nPlayer as Integer

) as enumErrorCodes



short control.StreamOutputSpeakersRearAndCenterSwap (

short nPlayer








Number representing the zero-based index of the involved player.



Return value






Value > 0

The number of speakers available on the given output device

Negative value

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