| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public long | |
| public long | |
| public long | loop(float volume, float pitch, float pan)
Implements com. Plays the sound, looping. |
| public void | |
| public void | pause(long soundId)
Implements com. Pauses the sound instance with the given id as returned by |
| public long | |
| public long | |
| public long | play(float volume, float pitch, float pan)
Implements com. Plays the sound. |
| public void | |
| public void | resume(long soundId)
Implements com. Resumes the sound instance with the given id as returned by |
| public void | setLooping(long soundId, boolean looping)
Implements com. Sets the sound instance with the given id to be looping. |
| public void | setPan(long soundId, float pan, float volume)
Implements com. Sets the panning and volume of the sound instance with the given id as returned by |
| public void | setPitch(long soundId, float pitch)
Implements com. Changes the pitch multiplier of the sound instance with the given id as returned by |
| public void | setVolume(long soundId, float volume)
Implements com. Changes the volume of the sound instance with the given id as returned by |
| public void | |
| public void | stop(long soundId)
Implements com. Stops the sound instance with the given id as returned by |
| MockSound | back to summary |
|---|---|
| public MockSound() | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements com. Doc from com. Releases all the resources.
| |
| loop | back to summary |
|---|---|
| public long loop() Implements com. Doc from com. Plays the sound, looping. If the sound is already playing, it will be played again, concurrently.
| |
| loop | back to summary |
|---|---|
| public long loop(float volume) Implements com. Doc from com. Plays the sound, looping. If the sound is already playing, it will be played again, concurrently. You need to stop the
sound via a call to
| |
| loop | back to summary |
|---|---|
| public long loop(float volume, float pitch, float pan) Implements com. Doc from com. Plays the sound, looping. If the sound is already playing, it will be played again, concurrently. You need to stop the
sound via a call to
| |
| pause | back to summary |
|---|---|
| public void pause() Implements com. Doc from com. Pauses all instances of this sound.
| |
| pause | back to summary |
|---|---|
| public void pause(long soundId) Implements com. Doc from com. Pauses the sound instance with the given id as returned by
| |
| play | back to summary |
|---|---|
| public long play() Implements com. Doc from com. Plays the sound. If the sound is already playing, it will be played again, concurrently.
| |
| play | back to summary |
|---|---|
| public long play(float volume) Implements com. Doc from com. Plays the sound. If the sound is already playing, it will be played again, concurrently.
| |
| play | back to summary |
|---|---|
| public long play(float volume, float pitch, float pan) Implements com. Doc from com. Plays the sound. If the sound is already playing, it will be played again, concurrently. Note that (with the exception of the web backend) panning only works for mono sounds, not for stereo sounds!
| |
| resume | back to summary |
|---|---|
| public void resume() Implements com. Doc from com. Resumes all paused instances of this sound.
| |
| resume | back to summary |
|---|---|
| public void resume(long soundId) Implements com. Doc from com. Resumes the sound instance with the given id as returned by
| |
| setLooping | back to summary |
|---|---|
| public void setLooping(long soundId, boolean looping) Implements com. Doc from com. Sets the sound instance with the given id to be looping. If the sound is no longer playing this has no effect.s
| |
| setPan | back to summary |
|---|---|
| public void setPan(long soundId, float pan, float volume) Implements com. Doc from com. Sets the panning and volume of the sound instance with the given id as returned by
| |
| setPitch | back to summary |
|---|---|
| public void setPitch(long soundId, float pitch) Implements com. Doc from com. Changes the pitch multiplier of the sound instance with the given id as returned by
| |
| setVolume | back to summary |
|---|---|
| public void setVolume(long soundId, float volume) Implements com. Doc from com. Changes the volume of the sound instance with the given id as returned by
| |
| stop | back to summary |
|---|---|
| public void stop() Implements com. Doc from com. Stops playing all instances of this sound.
| |
| stop | back to summary |
|---|---|
| public void stop(long soundId) Implements com. Doc from com. Stops the sound instance with the given id as returned by
| |