|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfootfall.players.GrainPlayer
Input sound grains and uses Java Sound to render audio.
Constructor Summary | |
GrainPlayer()
Input sound grains and uses Java Sound to render audio. |
|
GrainPlayer(int bitRate)
Input sound grains and uses Java Sound to render audio. |
Method Summary | |
void |
addGrain(float[] b)
Add grain to current buffer (additive). |
int |
getBitRate()
Playback bit rate |
int |
getVolume()
Volume for use in vertical scrollbars (127 = minimum, 0 = maximum) |
java.lang.String |
getVolumeLabel()
Volume Label for use in scrollbars (0% - 100%) |
void |
initGrains(int bufSize)
Clear current buffer on every frame and load new buffer of specific size |
float[] |
playGrains()
Play the grains in the current buffer and return the buffer for display |
void |
setVolume(int volume)
Set the volume/amplitude for the grain player |
void |
start()
Start the lines for audio output |
void |
stop()
Stop the lines for audio output |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GrainPlayer()
public GrainPlayer(int bitRate)
bitRate
- Playback bit rate (11.025kHz -44.1kHz)Method Detail |
public void addGrain(float[] b)
b
- Grain buffer to addpublic int getBitRate()
public int getVolume()
public java.lang.String getVolumeLabel()
public void initGrains(int bufSize)
bufSize
- Size New buffer sizepublic float[] playGrains()
public void setVolume(int volume)
volume
- Volume (127 = minimum, 0 = maximum)public void start()
public void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |