Packagecom.distriqt.extension.mediaplayer.sound
Interfacepublic 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.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
SoundPool
  
setMaxStreams(maxStreams:int):Boolean
SoundPool
Property Detail
isSupportedproperty
isSupported:Boolean  [read-only]

Whether the sound pool functionality is supported on the current platform and device.


Implementation
    public function get isSupported():Boolean
isSupportedNativelyproperty 
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.


Implementation
    public function get isSupportedNatively():Boolean
Method Detail
createSound()method
public function createSound():Sound

Returns
Sound
setMaxStreams()method 
public function setMaxStreams(maxStreams:int):Boolean

Parameters

maxStreams:int

Returns
Boolean