at.tuwien.ifs.somtoolbox.apps.viewer.controls.multichannelPlayback
Class TPlaybackThreadDataRecord

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.apps.viewer.controls.multichannelPlayback.TPlaybackThreadDataRecord

public class TPlaybackThreadDataRecord
extends Object

Record type for data for one PlaybackThread.
Contains:

Version:
$Id: TPlaybackThreadDataRecord.java 3877 2010-11-02 15:43:17Z frank $
Author:
Ewald Peiszer

Field Summary
 Vector[] avMusic
           Lists of songs to play
 Point[] pPos
           Positions of speakers.
 
Constructor Summary
TPlaybackThreadDataRecord()
           
 
Method Summary
 boolean addSongs(int iChannel, String[] aStrings)
           
 boolean setPos(int iChannel, 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
 

Field Detail

pPos

public Point[] pPos

Positions of speakers.

Array is initialized at the time the object is created

However, both entries ([0] and [1]) are null until setPos is called.


avMusic

public Vector[] avMusic

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 is called.

Constructor Detail

TPlaybackThreadDataRecord

public TPlaybackThreadDataRecord()
Method Detail

setPos

public boolean setPos(int iChannel,
                      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 iChannel,
                        String[] aStrings)