setAudioPath

Requests a change from the current audio path to the given audio path.

Parameters:

newPath - The audio path to switch to. A valid audio path is one of the AUDIO_PATH_* constants.

Throws:

MediaException - If the specified audio path is not allowed for the audio source of this
AudioControlPath. For example, AUDIO_PATH_HEADSET is not allowed for any
AudioControlPath objects, regardless of their source, if the headset is not connected.