|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface SoundResource.Handle
Represents a sound that is currently playing.
Method Summary | |
---|---|
long |
getPosition()
Return the number of milliseconds for which the sound has been playing. |
boolean |
isComplete()
Indicates if the sound has finished playing. |
void |
setPan(int pan)
Change the panning of the sound after it has been started. |
void |
setVolume(int volume)
Change the volume of the sound after it has been started. |
void |
stop()
Stop playing the resource. |
Method Detail |
---|
long getPosition()
boolean isComplete()
void setPan(int pan)
pan
- A number from -100 (far left) to 100 (far right). Out-of-range
values will be coerced into the acceptable range.void setVolume(int volume)
volume
- A number from 0 to 100. Out-of-range values will be coerced
into the acceptable range.void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |