at.tuwien.ifs.somtoolbox.audio
Class PlaybackThreadDataRecord
java.lang.Object
at.tuwien.ifs.somtoolbox.audio.PlaybackThreadDataRecord
public class PlaybackThreadDataRecord
- extends Object
Record type for data for one PlaybackThread.
Contains:
- position of the two speakers
- Lists of music files
- Version:
- $Id: PlaybackThreadDataRecord.java 3583 2010-05-21 10:07:41Z mayer $
- Author:
- Ewald Peiszer
Method Summary |
boolean |
addSongs(int channel,
String[] songNames)
|
boolean |
setPosition(int channel,
int x,
int y)
Sets the position of one speaker |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
position
public Point[] position
- Positions of speakers. Array is initialized at the time the object is created.
However, both entries ([0] and [1]) are null
until
setPosition(int, int, int)
is called.
listOfSongs
public Vector<String>[] listOfSongs
- Lists of songs to play. Array is initialized at the time the object is created.
However, both entries ([0] and [1]) are null
until
addSongs(int, String[])
is called.
PlaybackThreadDataRecord
public PlaybackThreadDataRecord()
setPosition
public boolean setPosition(int channel,
int x,
int y)
- Sets the position of one speaker
- Returns:
- false if the position has already be set earlier, true otherwise
addSongs
public boolean addSongs(int channel,
String[] songNames)