ads
Class AbstractTrack

java.lang.Object
  |
  +--ads.AbstractTrack
Direct Known Subclasses:
AudioTrack, MidiTrack

public class AbstractTrack
extends java.lang.Object

This class will probably become the super class for AudioTrack and MidiTrack


Constructor Summary
AbstractTrack()
           
 
Method Summary
 java.lang.String getDeviceName()
          Get the device name of this track.
 java.lang.String getFileName()
          Get the file name of this track.
 int getInputDeviceNumber()
          Get the input device number of this track.
 long getLength()
          Get the length of this track.
 java.lang.String getName()
          Get the name of this track.
 int getOutputDeviceNumber()
          Get the output device number of this track.
 long getPosition()
          Get the current position of this track.
 int getTrackNumber()
          Get the track number of this track.
 boolean isAudioBoolean()
          Returns true if this is an audio track.
 boolean isLoopBoolean()
          Returns true if this is a loop track.
 boolean isMidiBoolean()
          Returns true if this is a midi track.
 boolean isMute()
          Returns true if this track is muted.
 boolean isPlay()
          Returns true if this track set to playback.
 boolean isRecord()
          Returns true if this track set to record.
 boolean isSolo()
          Returns true if this track is in solo mode.
 void setAudioBoolean(boolean audioBoolean)
          Makes this track an audio track.
 void setDeviceName(java.lang.String deviceName)
          Set the device name of this track.
 void setFileName(java.lang.String fileName)
          Set the file name of this track.
 void setGain(int val)
          Sets the gain for this track.
 void setInputDeviceNumber(int inputDeviceNumber)
          Set the input device number of this track.
 void setLength(long length)
          Set the length of this track.
 void setLoopBoolean(boolean loopBoolean)
          Makes this track a loop track.
 void setMidiBoolean(boolean midiBoolean)
          Makes this track a midi track.
 void setMute(boolean mute)
          Mutes this track.
 void setName(java.lang.String name)
          Set the name of this track.
 void setOutputDeviceNumber(int outputDeviceNumber)
          Set the output device number of this track.
 void setPlay(boolean play)
          Sets this track to playback.
 void setPosition(long position)
          Set the current position of this track.
 void setRecord(boolean record)
          Sets this track set to record.
 void setSolo(boolean solo)
          Sets this track to solo mode.
 void setTrackNumber(int trackNum)
          Set the track number of this track.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTrack

public AbstractTrack()
Method Detail

getLength

public long getLength()
Get the length of this track.


setLength

public void setLength(long length)
Set the length of this track.


getPosition

public long getPosition()
Get the current position of this track.


setPosition

public void setPosition(long position)
Set the current position of this track.


getTrackNumber

public int getTrackNumber()
Get the track number of this track.


setTrackNumber

public void setTrackNumber(int trackNum)
Set the track number of this track.


getInputDeviceNumber

public int getInputDeviceNumber()
Get the input device number of this track.
This is not yet implemented.


setInputDeviceNumber

public void setInputDeviceNumber(int inputDeviceNumber)
Set the input device number of this track.
This is not yet implemented.


getOutputDeviceNumber

public int getOutputDeviceNumber()
Get the output device number of this track.
This is not yet implemented.


setOutputDeviceNumber

public void setOutputDeviceNumber(int outputDeviceNumber)
Set the output device number of this track.
This is not yet implemented.


getDeviceName

public java.lang.String getDeviceName()
Get the device name of this track.
This is not yet implemented.


setDeviceName

public void setDeviceName(java.lang.String deviceName)
Set the device name of this track.
This is not yet implemented.


getName

public java.lang.String getName()
Get the name of this track.
This is the text in the name textField in the TrackPanel.
This is not yet implemented.


setName

public void setName(java.lang.String name)
Set the name of this track.
This is the text in the name textField in the TrackPanel.
This is not yet implemented.


getFileName

public java.lang.String getFileName()
Get the file name of this track.
If this is an audio track, it will have a .wav extenion.
If this is an midi track, it will have a .mid extenion.
This is not yet implemented.


setFileName

public void setFileName(java.lang.String fileName)
Set the file name of this track.
If this is an audio track, it will have a .wav extenion.
If this is an midi track, it will have a .mid extenion.
This is not yet implemented.


setGain

public void setGain(int val)
Sets the gain for this track. This is called by the setVol(int val)method of the selected Channel object of the Mixer object.


isAudioBoolean

public boolean isAudioBoolean()
Returns true if this is an audio track.


setAudioBoolean

public void setAudioBoolean(boolean audioBoolean)
Makes this track an audio track.


isMidiBoolean

public boolean isMidiBoolean()
Returns true if this is a midi track.


setMidiBoolean

public void setMidiBoolean(boolean midiBoolean)
Makes this track a midi track.


isLoopBoolean

public boolean isLoopBoolean()
Returns true if this is a loop track.


setLoopBoolean

public void setLoopBoolean(boolean loopBoolean)
Makes this track a loop track.


isRecord

public boolean isRecord()
Returns true if this track set to record.


setRecord

public void setRecord(boolean record)
Sets this track set to record.


isPlay

public boolean isPlay()
Returns true if this track set to playback.


setPlay

public void setPlay(boolean play)
Sets this track to playback.


isMute

public boolean isMute()
Returns true if this track is muted.


setMute

public void setMute(boolean mute)
Mutes this track.


isSolo

public boolean isSolo()
Returns true if this track is in solo mode.


setSolo

public void setSolo(boolean solo)
Sets this track to solo mode.