|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.icdif.audio.io.AudioDevice
public class AudioDevice
A class that allows the passage of PCM float data to the audio device
Constructor Summary | |
---|---|
AudioDevice(float sampleRate)
Initializes the audio system |
Method Summary | |
---|---|
void |
pausePlaying()
By using the stop method of the Line, it can pause the playing (it can be resumed later) |
void |
playSamples(float[] samples)
Passes the samples to the soundcard that plays them. |
void |
resumePlaying()
By using the start method of the line, it can resume playing |
void |
stopPlaying()
Stops playing, flushes and closes the line |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AudioDevice(float sampleRate) throws javax.sound.sampled.LineUnavailableException
javax.sound.sampled.LineUnavailableException
- when the audio is not availableMethod Detail |
---|
public void playSamples(float[] samples)
samples
- The Samples to playpublic void pausePlaying()
public void resumePlaying()
public void stopPlaying()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |