javaclient
Class AudioMixerInterface
java.lang.Object
javaclient.PlayerDevice
javaclient.AudioMixerInterface
public class AudioMixerInterface
- extends PlayerDevice
The audiomixer interface is used to control sound levels.
- Version:
- v1.6.3 - Player 1.6.3 (all interfaces) supported
- v1.6.2 - Player 1.6.2 supported, Javadoc documentation, several bugfixes
- Author:
- Radu Bogdan Rusu
Fields inherited from class javaclient.PlayerDevice |
device, DIFFERENCE_SYNCH_FACTOR, index, is, os, pc, PLAYER_MAX_REQREP_SIZE, PLAYER_STXX, reserved, size, t_sec, t_usec, ts_sec, ts_usec |
Methods inherited from class javaclient.PlayerDevice |
getTimeForDataSampled_sec, getTimeForDataSampled_usec, getTimeForDataSampled, getTimeForDataSent_sec, getTimeForDataSent_usec, getTimeForDataSent, handleEARMessage, handleNARMessage, readData, readHeader, sendHeader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PLAYER_AUDIOMIXER_SET_MASTER
protected static final short PLAYER_AUDIOMIXER_SET_MASTER
- See Also:
- Constant Field Values
PLAYER_AUDIOMIXER_SET_PCM
protected static final short PLAYER_AUDIOMIXER_SET_PCM
- See Also:
- Constant Field Values
PLAYER_AUDIOMIXER_SET_LINE
protected static final short PLAYER_AUDIOMIXER_SET_LINE
- See Also:
- Constant Field Values
PLAYER_AUDIOMIXER_SET_MIC
protected static final short PLAYER_AUDIOMIXER_SET_MIC
- See Also:
- Constant Field Values
PLAYER_AUDIOMIXER_SET_IGAIN
protected static final short PLAYER_AUDIOMIXER_SET_IGAIN
- See Also:
- Constant Field Values
PLAYER_AUDIOMIXER_SET_OGAIN
protected static final short PLAYER_AUDIOMIXER_SET_OGAIN
- See Also:
- Constant Field Values
AudioMixerInterface
public AudioMixerInterface(PlayerClient pc,
short indexOfDevice)
- Constructor for AudioMixerInterface.
- Parameters:
pc
- a reference to the PlayerClient objectindexOfDevice
- the index of the device
setVolume
public void setVolume(byte subtype,
short left,
short right)
- The audiomixer interface accepts commands to set the left and right volume
levels of various channels. The channel may be PLAYER_AUDIOMIXER_MASTER for
the master volume, PLAYER_AUDIOMIXER_PCM for the PCM volume,
PLAYER_AUDIOMIXER_LINE for the line in volume, PLAYER_AUDIOMIXER_MIC for the
microphone volume, PLAYER_AUDIOMIXER_IGAIN for the input gain, and
PLAYER_AUDIOMIXER_OGAIN for the output gain.
See the player_audiomixer_cmd structure from player.h
- Parameters:
subtype
- one of the types aboveleft
- value for the left channelright
- value for the right channel
getLevels
public void getLevels(byte subtype)
- Configuration request: Get levels.
The audiomixer interface provides accepts a configuration request which
returns the current state of the mixer levels
See the player_audiomixer_config structure from player.h
handleResponse
public void handleResponse(int size)
- Handle acknowledgement response messages (threaded mode).
- Overrides:
handleResponse
in class PlayerDevice
- Parameters:
size
- size of the payload
getMasterLeft
public int getMasterLeft()
getMasterRight
public int getMasterRight()
getPCMLeft
public int getPCMLeft()
getPCMRight
public int getPCMRight()
getLineLeft
public int getLineLeft()
getLineRight
public int getLineRight()
getMicLeft
public int getMicLeft()
getMicRight
public int getMicRight()
getIGain
public int getIGain()
getOGain
public int getOGain()