org.gstreamer.interfaces
Class MixerTrack

java.lang.Object
  extended by org.gstreamer.lowlevel.NativeValue
      extended by org.gstreamer.lowlevel.Handle
          extended by org.gstreamer.lowlevel.NativeObject
              extended by org.gstreamer.lowlevel.RefCountedObject
                  extended by org.gstreamer.GObject
                      extended by org.gstreamer.interfaces.MixerTrack

public class MixerTrack
extends GObject


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

MixerTrack

public MixerTrack(NativeObject.Initializer init)
For internal gstreamer-java use only

Parameters:
init - initialization data
Method Detail

getChannelCount

public int getChannelCount()
Gets the number of channels in this track

Returns:
the number of channels

hasFlag

public final boolean hasFlag(int flag)
Checks if a flag is set on this track.

Returns:
true if the flag is set

isInput

public boolean isInput()
Checks if this track is an input track.

Returns:
true if this track is an input track

isOutput

public boolean isOutput()
Checks if this track is an output track.

Returns:
true if this track is an output track

isMuted

public boolean isMuted()
Checks if this track is currently muted.

Returns:
true if this track is muted

isRecording

public boolean isRecording()
Checks if this track is currently recording.

Returns:
true if this track is recording

setVolume

public void setVolume(int[] volumes)
Sets the volume on each channel in a track.

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.

Parameters:
volumes - an array of integers (of size track.getChannelCount()) that gives the wanted volume for each channel in this track.

getVolume

public int[] getVolume()
Gets the current volume(s) on the given track.

Returns:
an array of int values containing the current volume for each channel

setMuted

public void setMuted(boolean mute)
Mutes or unmutes the given channel.

Parameters:
mute - true to mute, false to unmute the track

setRecording

public void setRecording(boolean record)
Enables or disables recording on the given track. Note that this is only possible on input tracks,

Parameters:
record - true to record, false to stop recording


Copyright © 2010. All Rights Reserved.