| Package | com.SeiON |
| Class | public final class SeionSample |
| Inheritance | SeionSample SeionInstance Object |
See also
| Property | Defined By | ||
|---|---|---|---|
![]() | autodispose : Boolean [read-only] Whether this sound is auto-disposable. | SeionInstance | |
| isPaused : Boolean [override] [read-only] Is the playback paused? (ISeionControl) | SeionSample | ||
| isPlaying : Boolean [override] [read-only] Is the sound active? (ISeionInstance) | SeionSample | ||
| latency : Number [read-only] The playback and decode latency. | SeionSample | ||
| length : Number [override] [read-only] The total sample length of the clip, excluding repeats. | SeionSample | ||
![]() | manager : SeionGroup [read-only] Returns the manager that holds this ISeionInstance. | SeionInstance | |
![]() | name : String The name of the clip, non-unique. | SeionInstance | |
![]() | pan : Number
Get: The panning as affected by its parent. | SeionInstance | |
| position : Number [override] [read-only] How far into the clip we are. | SeionSample | ||
| progress : Number [override] [read-only]
How far into the clip we are, from 0.0 - 1.0. | SeionSample | ||
![]() | repeat : int
How many times the SeionInstance is programmed to repeat itself. | SeionInstance | |
![]() | repeatLeft : int [read-only]
How many more times the SeionInstance has to repeat itself. | SeionInstance | |
![]() | soundtransform : SoundTransform [read-only] Returns the predefined sound properties of the sound. | SeionInstance | |
![]() | volume : Number
Get: The volume as affected by its parent. | SeionInstance | |
| Method | Defined By | ||
|---|---|---|---|
SeionSample(secretKey:*)
Please do not call this constructor directly; it will throw an error. | SeionSample | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void | SeionInstance | |
createGaplessMP3(name:String, manager:SeionGroup, snd:Sound, sampleDuration:int, repeat:int, autodispose:Boolean = true, sndTransform:SoundTransform = null):SeionSample [static]
Creates a soundclip that provides for gapless playback of MP3. | SeionSample | ||
![]() | dispatchEvent(event:Event):Boolean | SeionInstance | |
dispose():void [override] Clears all references held. | SeionSample | ||
![]() | hasEventListener(type:String):Boolean | SeionInstance | |
![]() | isDisposed(output:Boolean = true):Boolean Is the SeionInstance already disposed of? (ISeionInstance)
| SeionInstance | |
pause():void [override] Pauses playback of sound. | SeionSample | ||
play():void [override] Plays the sound from the beginning again. | SeionSample | ||
![]() | removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void | SeionInstance | |
resume():void [override] Resumes playback of sound. | SeionSample | ||
stop():void [override] Stops the sound and resets it to Zero. | SeionSample | ||
![]() | willTrigger(type:String):Boolean | SeionInstance | |
| isPaused | property |
isPaused:Boolean [read-only] [override] Is the playback paused? (ISeionControl)
public function get isPaused():Boolean| isPlaying | property |
isPlaying:Boolean [read-only] [override] Is the sound active? (ISeionInstance)
public function get isPlaying():Boolean| latency | property |
latency:Number [read-only] The playback and decode latency.
public function get latency():Number| length | property |
length:Number [read-only] [override] The total length of the clip, excluding repeats. (ISeionInstance)
public function get length():Number| position | property |
position:Number [read-only] [override] How far into the clip we are. In samples. (ISeionInstance)
public function get position():Number| progress | property |
progress:Number [read-only] [override] How far into the clip we are, from 0.0 - 1.0. (ISeionInstance)
Warning: The value may jerk around initially when sound is first played. public function get progress():Number| SeionSample | () | Constructor |
public function SeionSample(secretKey:*)Please do not call this constructor directly; it will throw an error. Call it through SeionSample.create().
ParameterssecretKey:* |
See also
| createGaplessMP3 | () | method |
public static function createGaplessMP3(name:String, manager:SeionGroup, snd:Sound, sampleDuration:int, repeat:int, autodispose:Boolean = true, sndTransform:SoundTransform = null):SeionSampleCreates a soundclip that provides for gapless playback of MP3.
Parameters
name:String — Any name, even a non-unique one.
| |
manager:SeionGroup — The SeionGroup that manages this SeionSample. Immutable.
| |
snd:Sound — The sound data. Immutable.
| |
sampleDuration:int — The original sample duration.
| |
repeat:int — How many times to repeat the clip.
| |
autodispose:Boolean (default = true) — Whether the clip will auto-mark for GC. Immutable.
| |
sndTransform:SoundTransform (default = null) — The fixed internal property for the sound.
|
SeionSample — A SeionSample if allocation was successful. Null if allocation failed, or
autodispose is true.
|
See also
| dispose | () | method |
override public function dispose():voidClears all references held. This object is now invalid. (ISeionInstance)
| pause | () | method |
override public function pause():voidPauses playback of sound. (ISeionControl)
| play | () | method |
override public function play():voidPlays the sound from the beginning again. (ISeionInstance)
| resume | () | method |
override public function resume():voidResumes playback of sound. (ISeionControl)
| stop | () | method |
override public function stop():voidStops the sound and resets it to Zero. (ISeionInstance)