|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gstreamer.lowlevel.NativeValue
org.gstreamer.lowlevel.Handle
org.gstreamer.lowlevel.NativeObject
org.gstreamer.lowlevel.RefCountedObject
org.gstreamer.GObject
org.gstreamer.interfaces.MixerTrack
public class MixerTrack
Nested Class Summary | |
---|---|
static class |
MixerTrack.Flags
|
Nested classes/interfaces inherited from class org.gstreamer.GObject |
---|
GObject.GCallback |
Nested classes/interfaces inherited from class org.gstreamer.lowlevel.NativeObject |
---|
NativeObject.Initializer |
Field Summary |
---|
Fields inherited from class org.gstreamer.lowlevel.NativeObject |
---|
defaultInit, ownsHandle |
Constructor Summary | |
---|---|
MixerTrack(NativeObject.Initializer init)
For internal gstreamer-java use only |
Method Summary | |
---|---|
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. |
Methods inherited from class org.gstreamer.GObject |
---|
addCallback, connect, connect, connect, disconnect, disconnect, disposeNativeHandle, g_signal_connect, get, getPointer, getPropertyDefaultValue, getPropertyMaximumValue, getPropertyMinimumValue, invalidate, objectFor, objectFor, ref, removeCallback, set, unref |
Methods inherited from class org.gstreamer.lowlevel.NativeObject |
---|
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, isDisposed, nativeValue, objectFor, objectFor, toString |
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MixerTrack(NativeObject.Initializer init)
init
- initialization dataMethod Detail |
---|
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |