Audio Lingo By Category
The new Audio feature introduces three new object types: mixer, soundObject and audioFilter. If you come from a background in sound design or audio engineering you will find that audioFilters correspond to what you call effects.
Mixers and SoundObjects share a number of methods and properties. These are grouped together at the beginning of this section. Mixer-only and SoundObject-only methods and properties are listed further down. AudioFilters are treated at the end of this section.
To create a new #mixer member:
vMember = new(#mixer)
To create a new soundObject within a given mixer:
vSoundObject = mixer.createSoundObject()
To create a new audioFilter:
vAudioFilter = audioFilter(#FilterSymbol)
To apply an audio filter to a mixer or soundObject:
audioObject.filterList.addAt(<position>, vAudioFilter)
SoundObjects can play back sound read in from a byteArray. Refer to the byteArray section for more details.
Contents
- audioObject.play()
- audioObject.pause()
- audioObject.stop()
- audioObject.mute()
- audioObject.unmute()
- audioObject.save()
- audioObject.startSave()
- audioObject.stopSave()
- audioObject.bitDepth
- audioObject.channelCount
- audioObject.elapsedTime
- audioObject.filterList
- audioObject.isSaving
- audioObject.name
- audioObject.panMatrix
- audioObject.sampleRate
- audioObject.status
- audioObject.toChannels
- audioObject.useMatrix
- audioObject.volume
Mixer-only Methods
- mixer.createSoundObject()
- mixer.deleteSoundObject()
- mixer.getSoundObject()
- mixer.reset()
Mixer-only properties
- mixer.bufferSize
- mixer.channel
- mixer.numBuffersToPreload
- mixer.soundObjectList
SoundObject-only Methods
- soundObject.breakLoop()
- soundObject.moveTo()
- soundObject.registerByteArrayCallback()
- soundObject.registerCuePointCallback()
- soundObject.replaceMember()
- soundObject.unregisterCuePointCallback()
- soundObject.unregisterByteArrayCallback()
SoundObject-only Properties
- soundObject.connectionStatus
- soundObject.currentTime
- soundObject.endTime
- soundObject.loopCount
- soundObject.loopEndTime
- soundObject.loopsRemaining
- soundObject.loopStartTime
- soundObject.member
- soundObject.mixer
- soundObject.mostRecentCuePoint
- soundObject.percentStreamed
- soundObject.playRate
- soundObject.sampleCount
- soundObject.startTime
AudioFilters
To create an audioFilter:
Property shared by all audioFilters:
Properties of each different type of filters: