public class MixerTrack extends GObject
Modifier and Type | Class and Description |
---|---|
static class |
MixerTrack.Flags |
GObject.GCallback
NativeObject.Initializer
defaultInit, ownsHandle
Constructor and Description |
---|
MixerTrack(NativeObject.Initializer init)
For internal gstreamer-java use only
|
Modifier and Type | Method and Description |
---|---|
int |
getChannelCount()
Gets the number of channels in this track
|
int[] |
getVolume()
Gets the current volume(s) on the given track.
|
boolean |
hasFlag(int flag)
Checks if a flag is set on this track.
|
boolean |
isInput()
Checks if this track is an input track.
|
boolean |
isMuted()
Checks if this track is currently muted.
|
boolean |
isOutput()
Checks if this track is an output track.
|
boolean |
isRecording()
Checks if this track is currently recording.
|
void |
setMuted(boolean mute)
Mutes or unmutes the given channel.
|
void |
setRecording(boolean record)
Enables or disables recording on the given track.
|
void |
setVolume(int[] volumes)
Sets the volume on each channel in a track.
|
addCallback, connect, connect, connect, disconnect, disconnect, disposeNativeHandle, emit, emit, g_signal_connect, get, getPointer, getPropertyDefaultValue, getPropertyMaximumValue, getPropertyMinimumValue, getType, invalidate, objectForX, ref, removeCallback, set, unref
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectFor, toString
public MixerTrack(NativeObject.Initializer init)
init
- initialization datapublic int getChannelCount()
public final boolean hasFlag(int flag)
public boolean isInput()
public boolean isOutput()
public boolean isMuted()
public boolean isRecording()
public void setVolume(int[] volumes)
Short note about naming: a track is defined as one separate stream owned by the mixer/element, such as 'Line-in' or 'Microphone'. A channel is said to be a mono-stream inside this track. A stereo track thus contains two channels.
volumes
- an array of integers (of size track.getChannelCount())
that gives the wanted volume for each channel in
this track.public int[] getVolume()
public void setMuted(boolean mute)
mute
- true to mute, false to unmute the trackpublic void setRecording(boolean record)
record
- true to record, false to stop recording