Package | com.distriqt.extension.mediaplayer.sound |
Interface | public interface SoundPool |
A SoundPool is a collection of samples that can be loaded into memory. It allows you to play short sound effects and samples. The sounds are loaded into memory for low-latency playback.
This is well suited to short sound effects and playback where trigger time is important.
If you want to playback longer sounds and music look at the AudioPlayer
class
for a more complete audio playback solution.
Property | Defined By | ||
---|---|---|---|
isSupported : Boolean [read-only]
Whether the sound pool functionality is supported on the current platform and device. | SoundPool | ||
isSupportedNatively : Boolean [read-only]
If true then sounds created in this pool will utilise a native implementation
for sound playback. | SoundPool |
Method | Defined By | ||
---|---|---|---|
SoundPool | |||
setMaxStreams(maxStreams:int):Boolean | SoundPool |
isSupported | property |
isSupported:Boolean
[read-only] Whether the sound pool functionality is supported on the current platform and device.
public function get isSupported():Boolean
isSupportedNatively | property |
isSupportedNatively:Boolean
[read-only]
If true
then sounds created in this pool will utilise a native implementation
for sound playback. If false
it will fallback to an implementation utilising
flash.media.Sound
.
public function get isSupportedNatively():Boolean
createSound | () | method |
setMaxStreams | () | method |
public function setMaxStreams(maxStreams:int):Boolean
Parameters
maxStreams:int |
Boolean |