ctext
index
Name CSample
Examples
ptext.loadSample("sampleName.aiff"); 
ptext.sample.play();
        
Description Simple audio support for pText objects.
Constructors
CSample();
Methods
fadeVolume ( )   Fades volume to new value between 0 and 1

load ( )   Loads the sample specified by 'sampleFileName'

loop ( )   Loads and loops indefinately the sample specified by 'sampleFileName'

mute ( )   Mutes or unmutes the current sample

pan ( )   Pans sound between left(-1) and right (1)

pause ( )   Pauses the currently playing sample

play ( )   Loads and starts the sample specified by 'sampleFileName'

setVolume ( )   Set volume between 0 and 1 for the current sample

stop ( )   Stops the currently playing sample

stopFade ( )   Stops any in-progress 'fades' on the current sample

stopPan ( )   Stops any in-progress 'pans' on the current sample

Usage Web & Application
Related