Constructor and Description |
---|
MemSound(byte[] left,
byte[] right,
Mixer mixer,
int id)
Construct a new MemSound with the given data and Mixer which will handle
this MemSound.
|
Modifier and Type | Method and Description |
---|---|
void |
play()
Plays this MemSound.
|
void |
play(double volume)
Plays this MemSound with a specified volume.
|
void |
play(double volume,
double pan)
Plays this MemSound with a specified volume and pan.
|
void |
stop()
Stops this MemSound from playing.
|
void |
unload()
Unloads this MemSound from the system.
|
public MemSound(byte[] left, byte[] right, Mixer mixer, int id)
left
- left channel of sound dataright
- right channel of sound datamixer
- Mixer that will handle this MemSoundid
- unique ID of this MemSoundpublic void play(double volume)
public void play(double volume, double pan)
public void stop()