|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides operations to generate a sample from a .P file.
Method Summary | |
---|---|
void |
play(float frequency,
boolean squareWave)
Play the P file as a sample. |
void |
write(float frequency,
boolean squareWave,
java.io.File outputFile)
Writes the P file to a sample file. |
Method Detail |
public void play(float frequency, boolean squareWave) throws javax.sound.sampled.LineUnavailableException
frequency
- The frequency.squareWave
- Indicates whether to use a square wave.
javax.sound.sampled.LineUnavailableException
- An audio line could not be opened.public void write(float frequency, boolean squareWave, java.io.File outputFile) throws java.io.IOException
frequency
- The frequency.squareWave
- Indicates whether to use a square wave.outputFile
- The output file.
java.io.IOException
- An error occurred writing to the file.
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |