net.sf.jack4j
Class TransportPosition
java.lang.Object
  
net.sf.jack4j.TransportPosition
- All Implemented Interfaces: 
 - java.lang.Cloneable
 
public class TransportPosition
- extends java.lang.Object
- implements java.lang.Cloneable
  
Contains information about current state of Jack transport.
 
 
 The structure contains fields listed below. Note that some of the fields may
 be uninitialized; to obtain information about which fields have valid values,
 see getValidBits() or getValidBitsSet() methods.
 
 
 - usecs
 
 - time in microseconds, monotonic, free-rolling counter
 
 - frameRate
 
 - current frame rate (per second)
 
 - frame
 
 - frame number; this field is always present
 
 - validBits
 
 - indicates which fields contain valid values, decode using
 
JackPositionBit 
 - validBitsSet
 
 - same as validBits, but decoded into more convenient EnumSet
 
 - bar
 
 - current bar
 
 - beat
 
 - current beat-within-bar
 
 - tick
 
 - current tick-within-beat
 
 - barStartTick
 
 
 - beatsPerBar
 
 - time signature "numerator"
 
 - beatType
 
 - time signature "denominator"
 
 - ticksPerBeat
 
 
 - beatsPerMinute
 
 
 - frameTime
 
 - current time in seconds
 
 - nextTime
 
 - next sequential frame_time (unless repositioned)
 
 - bbtOffset
 
 - bar-beat-tick offset (how many frames passed since the start of current
 tick)
 
 - audioFramesPerVideoFrame
 
 - number of audio frames per video frame
 
 - videoOffset
 
 - audio frame at which the first video frame in this cycle occurs
 
 
- Author:
 
  - repa
 
 
 
| Methods inherited from class java.lang.Object | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
TransportPosition
public TransportPosition()
finalize
protected void finalize()
                 throws java.lang.Throwable
- Overrides:
 finalize in class java.lang.Object
 
- Throws:
 java.lang.Throwable
 
clone
protected TransportPosition clone()
- Overrides:
 clone in class java.lang.Object
 
- See Also:
 Object.clone()
 
getUsecs
public long getUsecs()
 
- Returns:
 - the usecs
 
 
setUsecs
public void setUsecs(long usecs)
 
- Parameters:
 usecs - the usecs to set
 
getFrameRate
public int getFrameRate()
 
- Returns:
 - the frameRate
 
 
setFrameRate
public void setFrameRate(int frameRate)
 
- Parameters:
 frameRate - the frameRate to set
 
getFrame
public int getFrame()
 
- Returns:
 - the frame
 
 
setFrame
public void setFrame(int frame)
 
- Parameters:
 frame - the frame to set
 
getValidBits
public int getValidBits()
 
- Returns:
 - the validBits
 
 
setValidBits
public void setValidBits(int validBits)
 
- Parameters:
 validBits - the validBits to set
 
getValidBitsSet
public java.util.EnumSet<JackPositionBit> getValidBitsSet()
 
- Returns:
 - the validBitsSet
 
 
setValidBitsSet
public void setValidBitsSet(java.util.EnumSet<JackPositionBit> validBitsSet)
 
- Parameters:
 validBitsSet - the validBitsSet to set
 
getBar
public int getBar()
 
- Returns:
 - the bar
 
 
setBar
public void setBar(int bar)
 
- Parameters:
 bar - the bar to set
 
getBeat
public int getBeat()
 
- Returns:
 - the beat
 
 
setBeat
public void setBeat(int beat)
 
- Parameters:
 beat - the beat to set
 
getTick
public int getTick()
 
- Returns:
 - the tick
 
 
setTick
public void setTick(int tick)
 
- Parameters:
 tick - the tick to set
 
getBarStartTick
public double getBarStartTick()
 
- Returns:
 - the barStartTick
 
 
setBarStartTick
public void setBarStartTick(double barStartTick)
 
- Parameters:
 barStartTick - the barStartTick to set
 
getBeatsPerBar
public float getBeatsPerBar()
 
- Returns:
 - the beatsPerBar
 
 
setBeatsPerBar
public void setBeatsPerBar(float beatsPerBar)
 
- Parameters:
 beatsPerBar - the beatsPerBar to set
 
getBeatType
public float getBeatType()
 
- Returns:
 - the beatType
 
 
setBeatType
public void setBeatType(float beatType)
 
- Parameters:
 beatType - the beatType to set
 
getTicksPerBeat
public double getTicksPerBeat()
 
- Returns:
 - the ticks_per_beat
 
 
setTicksPerBeat
public void setTicksPerBeat(double ticks_per_beat)
 
- Parameters:
 ticks_per_beat - the ticks_per_beat to set
 
getBeatsPerMinute
public double getBeatsPerMinute()
 
- Returns:
 - the beats_per_minute
 
 
setBeatsPerMinute
public void setBeatsPerMinute(double beats_per_minute)
 
- Parameters:
 beats_per_minute - the beats_per_minute to set
 
getFrameTime
public double getFrameTime()
 
- Returns:
 - the frameTime
 
 
setFrameTime
public void setFrameTime(double frameTime)
 
- Parameters:
 frameTime - the frameTime to set
 
getNextTime
public double getNextTime()
 
- Returns:
 - the nextTime
 
 
setNextTime
public void setNextTime(double nextTime)
 
- Parameters:
 nextTime - the nextTime to set
 
getBbtOffset
public int getBbtOffset()
 
- Returns:
 - the bbtOffset
 
 
setBbtOffset
public void setBbtOffset(int bbtOffset)
 
- Parameters:
 bbtOffset - the bbtOffset to set
 
getAudioFramesPerVideoFrame
public float getAudioFramesPerVideoFrame()
 
- Returns:
 - the audioFramesPerVideoFrame
 
 
setAudioFramesPerVideoFrame
public void setAudioFramesPerVideoFrame(float audioFramesPerVideoFrame)
 
- Parameters:
 audioFramesPerVideoFrame - the audioFramesPerVideoFrame to set
 
getVideoOffset
public int getVideoOffset()
 
- Returns:
 - the videoOffset
 
 
setVideoOffset
public void setVideoOffset(int videoOffset)
 
- Parameters:
 videoOffset - the videoOffset to set
 
Copyright © 2008 Ondrej Par. All Rights Reserved.