public void setChannels(int channels)
	{
		int oldChannels = this.channels;

		boolean wasPlaying = !isPaused();
		if (wasPlaying) pausePlayback();

		this.channels = channels;
		initialize();
		openAudioDevice();
		if (!isInitialized())
		{
			this.channels = oldChannels;
			initialize();
			openAudioDevice();
		}

		if (wasPlaying) pausePlayback();
	}
public void setChannels ( int channels ) { int oldChannels = this . channels ; boolean wasPlaying = ! isPaused ( ) ; if ( wasPlaying ) pausePlayback ( ) ; this . channels = channels ; initialize ( ) ; openAudioDevice ( ) ; if ( ! isInitialized ( ) ) { this . channels = oldChannels ; initialize ( ) ; openAudioDevice ( ) ; } if ( wasPlaying ) pausePlayback ( ) ; }
@param channels The channels to set.