whether the Sound object represents a successfully loaded sound sample. This will be true if the methods on the companion object successfully loaded the sound from a file or a URL, and false if there was a problem
whether the Sound object represents a successfully loaded sound sample. This will be true if the methods on the companion object successfully loaded the sound from a file or a URL, and false if there was a problem
Plays the sound sample, possibly multiple times in sequence.
Plays the sound sample, possibly multiple times in sequence.
Parameters
repeats
how many additional times the sound should play after being played once; if you pass in KeepRepeating, the sound will repeat indefinitely unless stop is called
volume
you may pass in a number to override the sounds’s default volume adjustment
an adjustment to the loaded sound sample’s volume: a positive number makes it louder a negative one quieter. A value equal to Mute means the sound is completely silent.
an adjustment to the loaded sound sample’s volume: a positive number makes it louder a negative one quieter. A value equal to Mute means the sound is completely silent.