|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectSong
public class Song
| Constructor Summary | |
|---|---|
Song(int duration)
Constructs a silent Song to which content can be added. |
|
| Method Summary | |
|---|---|
void |
add(double[] ds)
Adds more content to the Song, after previous content. |
void |
play(SoundDevice device)
Plays the Song on a given device. |
void |
save(javax.sound.sampled.AudioFormat format,
java.io.File file)
Saves the Song on a file in WAV format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Song(int duration)
duration - maximum length in seconds.| Method Detail |
|---|
public void play(SoundDevice device)
device - the SoundDevice on which to play the song.
public void save(javax.sound.sampled.AudioFormat format,
java.io.File file)
format - The AudioFormat used (can be retrieved from the SoundDevice).file - The File to be written.public void add(double[] ds)
ds - the content to be added.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||