soundPlayback
Class SoundCardPlayback

java.lang.Object
  extended by soundPlayback.SoundCardPlayback
All Implemented Interfaces:
PlaybackSystem

public class SoundCardPlayback
extends java.lang.Object
implements PlaybackSystem


Field Summary
private  javax.sound.sampled.AudioFormat audioFormat
           
(package private)  byte[] rawAudio
           
private  soundCardDialogComponent soundCardDialogComponent
           
private  javax.sound.sampled.SourceDataLine sourceDataLine
           
 
Constructor Summary
SoundCardPlayback(SoundCardSystem soundCardSystem)
           
 
Method Summary
 PlaybackDialogComponent getDialogComponent()
           
 int getMaxChannels()
           
 java.lang.String getName()
           
 boolean playData(RawDataUnit[] data)
           
 boolean prepareSystem(PlaybackControl playbackControl, int nChannels, float sampleRate)
           
 boolean unPrepareSystem()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

soundCardDialogComponent

private soundCardDialogComponent soundCardDialogComponent

audioFormat

private javax.sound.sampled.AudioFormat audioFormat

sourceDataLine

private javax.sound.sampled.SourceDataLine sourceDataLine

rawAudio

byte[] rawAudio
Constructor Detail

SoundCardPlayback

public SoundCardPlayback(SoundCardSystem soundCardSystem)
Method Detail

getDialogComponent

public PlaybackDialogComponent getDialogComponent()
Specified by:
getDialogComponent in interface PlaybackSystem

getMaxChannels

public int getMaxChannels()
Specified by:
getMaxChannels in interface PlaybackSystem

getName

public java.lang.String getName()
Specified by:
getName in interface PlaybackSystem

prepareSystem

public boolean prepareSystem(PlaybackControl playbackControl,
                             int nChannels,
                             float sampleRate)
Specified by:
prepareSystem in interface PlaybackSystem

unPrepareSystem

public boolean unPrepareSystem()
Specified by:
unPrepareSystem in interface PlaybackSystem

playData

public boolean playData(RawDataUnit[] data)
Specified by:
playData in interface PlaybackSystem