MCPcopy Index your code

hub / github.com/pixijs/sound / functions

Functions246 in github.com/pixijs/sound

↓ 33 callersMethodplay
(options: PlayOptions)
src/interfaces/IMediaInstance.ts:92
↓ 23 callersFunctiongetInstance
* Internal get function for the singleton instance. * @ignore
src/instance.ts:24
↓ 21 callersMethodconnect
* Connect to the destination. * @param {AudioNode} destination - The destination node to connect the output to
src/filters/Filter.ts:35
↓ 17 callersMethoddisconnect
Completely disconnect filter from destination and source nodes.
src/filters/Filter.ts:41
↓ 15 callersMethoddestroy
()
src/interfaces/IMedia.ts:37
↓ 15 callersMethodfind
* Find a sound by alias. * @param alias - The sound alias reference. * @return Sound object.
src/SoundLibrary.ts:422
↓ 12 callersMethodadd
* @ignore
src/SoundLibrary.ts:142
↓ 12 callersMethodsetParamValue
* Dezippering is removed in the future Web Audio API, instead * we use the `setValueAtTime` method, however, this is not available * in all
src/webaudio/WebAudioUtils.ts:18
↓ 11 callersMethodexists
* Checks if a sound by alias exists. * @param alias - Check for alias. * @param assert - Whether enable console.assert. * @return true
src/SoundLibrary.ts:387
↓ 11 callersMethodstop
Stop the current instance from playing.
src/interfaces/IMediaInstance.ts:47
↓ 10 callersMethodgetGain
* Get gain amount on a specific frequency. * @return The amount of gain set.
src/filters/EqualizerFilter.ts:216
↓ 10 callersMethodsetGain
* Set gain on a specific frequency. * @param frequency - The frequency, see EqualizerFilter.F* for bands * @param gain - Recommended -40 to
src/filters/EqualizerFilter.ts:203
↓ 8 callersMethodfrom
* Create a new sound instance from source. * @param source - Either the path or url to the source file. * or the object of options to
src/Sound.ts:235
↓ 8 callersMethodon
(event: 'pause', fn: (paused: boolean) => void, context?: any)
src/interfaces/IMediaInstance.ts:98
↓ 8 callersMethodremove
* Removes a sound by alias. * @param alias - The sound alias reference. * @return Instance for chaining.
src/SoundLibrary.ts:251
↓ 6 callersMethodinit
(sound: Sound)
src/interfaces/IMedia.ts:35
↓ 6 callersMethodrefresh
Refresh loop, volume and speed based on changes to parent
src/webaudio/WebAudioInstance.ts:182
↓ 5 callersMethodrefresh
Dispatch event to refresh all instances volume, mute, etc.
src/interfaces/IMediaContext.ts:44
↓ 5 callersMethodrefresh
Call whenever the loop, speed or volume changes
src/htmlaudio/HTMLAudioInstance.ts:232
↓ 5 callersMethodremoveAll
* Stops and removes all sounds. They cannot be used after this. * @return Instance for chaining.
src/SoundLibrary.ts:356
↓ 4 callersMethod_clamp
* Clamp a value * @param value * @param min - Minimum value * @param max - Maximum value * @return Clamped number
src/filters/ReverbFilter.ts:37
↓ 4 callersMethod_internalStop
* Stop the sound playing * @private
src/htmlaudio/HTMLAudioInstance.ts:153
↓ 4 callersMethod_rebuild
* Utility function for building an impulse response * from the module parameters.
src/filters/ReverbFilter.ts:88
↓ 4 callersMethodoff
(event: 'resumed' | 'paused' | 'start' | 'end' | 'progress' | 'pause' | 'stop', fn?: (...args: any[])
src/interfaces/IMediaInstance.ts:101
↓ 4 callersFunctionprogressBar
(button, progress)
examples/client/demo.js:77
↓ 4 callersMethodrefresh
Internal only, speed, loop, volume change occured.
src/Sound.ts:658
↓ 4 callersMethodstopAll
* Stops all sounds. * @return Instance for chaining.
src/SoundLibrary.ts:371
↓ 3 callersMethod_internalStop
Stops the instance.
src/webaudio/WebAudioInstance.ts:472
↓ 3 callersMethod_update
Internal update the progress.
src/webaudio/WebAudioInstance.ts:422
↓ 3 callersMethodautoPlayStart
Auto play the first instance.
src/Sound.ts:737
↓ 3 callersMethodenableTicker
Start the update progress.
src/webaudio/WebAudioInstance.ts:341
↓ 3 callersMethodisPlaying
* Convenience function to check to see if any sound is playing. * @returns `true` if any sound is currently playing.
src/SoundLibrary.ts:404
↓ 3 callersMethodload
(callback?: LoadedCallback)
src/interfaces/IMedia.ts:36
↓ 3 callersFunctionrefresh
()
examples/client/filters.js:74
↓ 3 callersMethodrefreshPaused
Emit event when muted, volume or speed changes
src/webaudio/WebAudioContext.ts:303
↓ 3 callersMethodrefreshPaused
Dispatches event to refresh the paused state of playing instances.
src/interfaces/IMediaContext.ts:41
↓ 3 callersMethodresume
Resuming all the instances of this sound from playing
src/Sound.ts:355
↓ 3 callersMethodvolume
Gets and sets the volume.
src/Sound.ts:680
↓ 2 callersMethod_decode
* Decodes the array buffer. * @param arrayBuffer - From load. * @param {Function} callback - Callback optional
src/webaudio/WebAudioMedia.ts:154
↓ 2 callersMethod_getOptions
* Internal methods for getting the options object * @private * @param source - The source options * @param overrides - Override default
src/SoundLibrary.ts:187
↓ 2 callersMethod_now
* Get the current time in seconds. * @return Seconds since start of context
src/webaudio/WebAudioInstance.ts:410
↓ 2 callersMethod_onComplete
* Sound instance completed. * @param instance
src/Sound.ts:764
↓ 2 callersMethod_poolInstance
* Destroy/recycling the instance object. * @param instance - Instance to recycle
src/Sound.ts:798
↓ 2 callersMethod_preload
Starts the preloading of sound.
src/Sound.ts:713
↓ 2 callersMethod_removeInstances
Removes all instances.
src/Sound.ts:750
↓ 2 callersMethodclose
* Closes the sound library. This will release/destroy * the AudioContext(s). Can be used safely if you want to * initialize the sound librar
src/SoundLibrary.ts:535
↓ 2 callersFunctiongetAlias
(asset: ResolvedAsset)
src/soundAsset.ts:7
↓ 2 callersMethodonce
(event: 'pause', fn: (paused: boolean) => void, context?: any)
src/interfaces/IMediaInstance.ts:95
↓ 2 callersMethodpause
Stops all the instances of this sound from playing.
src/Sound.ts:346
↓ 2 callersFunctionsuite
(useLegacy = false)
test/suite.ts:26
↓ 2 callersFunctiontogglePlaying
(button)
examples/client/demo.js:68
↓ 1 callersMethod_createInstance
Create a new instance.
src/Sound.ts:780
↓ 1 callersMethod_loadUrl
Loads a sound using XHMLHttpRequest object.
src/webaudio/WebAudioMedia.ts:141
↓ 1 callersMethod_onComplete
* Callback when completed. * @private
src/htmlaudio/HTMLAudioInstance.ts:372
↓ 1 callersMethod_unlock
* Try to unlock audio on iOS. This is triggered from either WebAudio plugin setup (which will work if inside of * a `mousedown` or `touchend` eve
src/webaudio/WebAudioContext.ts:164
↓ 1 callersMethodaddSprites
* @ignore
src/Sound.ts:414
↓ 1 callersMethodapplyFilters
Connect filters nodes to audio context
src/webaudio/WebAudioInstance.ts:209
↓ 1 callersMethodcloneBufferSource
* Clones the bufferSource. Used just before playing a sound. * @returns {SourceClone} The clone AudioBufferSourceNode.
src/webaudio/WebAudioNodes.ts:116
↓ 1 callersMethodcreate
()
src/interfaces/IMedia.ts:34
↓ 1 callersMethoddecode
* Decode the audio data * @param arrayBuffer - Buffer from loader * @param callback - When completed, error and audioBuffer are parameters.
src/webaudio/WebAudioContext.ts:337
↓ 1 callersFunctiondecodeHTMLEntities
(rawStr)
examples/client/index.js:14
↓ 1 callersMethodinit
* Re-initialize the sound library, this will * recreate the AudioContext. If there's a hardware-failure * call `close` and then `init`.
src/SoundLibrary.ts:52
↓ 1 callersMethodinit
Reinitialize
src/filters/Filter.ts:25
↓ 1 callersMethodinit
Initializes the instance.
src/webaudio/WebAudioInstance.ts:464
↓ 1 callersMethodinit
* Initialize the instance. * @param {htmlaudio.HTMLAudioMedia} media - Same as constructor
src/htmlaudio/HTMLAudioInstance.ts:135
↓ 1 callersMethodplay
(source?: string | PlayOptions | CompleteCallback, complete?: CompleteCallback)
src/Sound.ts:529
↓ 1 callersMethodplay
* Plays the sound. * @param options - Play options.
src/webaudio/WebAudioInstance.ts:283
↓ 1 callersMethodplay
Start playing the sound/
src/htmlaudio/HTMLAudioInstance.ts:302
↓ 1 callersMethodplayEmptySound
* Plays an empty sound in the web audio context. This is used to enable web audio on iOS devices, as they * require the first sound to be played
src/webaudio/WebAudioContext.ts:184
↓ 1 callersMethodpreferUrl
* Internal help for resolving which file to use if there are multiple provide * this is especially helpful for working with bundlers (non Assets
src/Sound.ts:324
↓ 1 callersMethodrefresh
Emit event when muted, volume or speed changes
src/webaudio/WebAudioContext.ts:297
↓ 1 callersMethodrefresh
Internal trigger when volume, mute or speed changes
src/htmlaudio/HTMLAudioContext.ts:25
↓ 1 callersMethodrefreshPaused
Handle changes in paused state. Internal only.
src/Sound.ts:669
↓ 1 callersMethodrefreshPaused
Handle changes in paused state, either globally or sound or instance
src/webaudio/WebAudioInstance.ts:229
↓ 1 callersMethodrefreshPaused
Handle changes in paused state, either globally or sound or instance
src/htmlaudio/HTMLAudioInstance.ts:252
↓ 1 callersMethodrefreshPaused
Internal trigger paused changes
src/htmlaudio/HTMLAudioContext.ts:31
↓ 1 callersMethodremoveSprites
* Remove a sound sprite. * @param alias - The unique name of the sound sprite, if alias is omitted, removes all sprites.
src/Sound.ts:452
↓ 1 callersMethodreset
Reset all frequency bands to have gain of 0
src/filters/EqualizerFilter.ts:357
↓ 1 callersFunctionsetInstance
* Internal set function for the singleton instance. * @ignore * @param sound - - Sound library instance
src/instance.ts:13
↓ 1 callersMethodtoggleMute
Toggle mute for all sounds
src/interfaces/IMediaContext.ts:35
↓ 1 callersMethodtoggleMuteAll
* Toggle muted property for all sounds. * @return `true` if all sounds are muted.
src/SoundLibrary.ts:323
↓ 1 callersMethodtogglePause
Toggle pause for all sounds
src/interfaces/IMediaContext.ts:38
↓ 1 callersMethodtogglePauseAll
* Toggle paused property for all sounds. * @return `true` if all sounds are paused.
src/SoundLibrary.ts:290
↓ 1 callersFunctionvalidateFormats
* Function to validate file type formats. This is called when the library initializes, but can * be called again if you need to recognize a format no
src/utils/supported.ts:55
MethodAudioContext
* Get AudioContext class, if not supported returns `null` * @type {AudioContext} * @readonly
src/webaudio/WebAudioContext.ts:202
MethodOfflineAudioContext
* Get OfflineAudioContext class, if not supported returns `null` * @type {OfflineAudioContext} * @readonly
src/webaudio/WebAudioContext.ts:218
Method_onComplete
Callback when completed.
src/webaudio/WebAudioInstance.ts:494
Method_onPause
* Reference: http://stackoverflow.com/a/40370077 * @private
src/htmlaudio/HTMLAudioInstance.ts:126
Method_onPlay
* Reference: http://stackoverflow.com/a/40370077 * @private
src/htmlaudio/HTMLAudioInstance.ts:117
Method_onUpdate
* Handle time update on sound. * @private
src/htmlaudio/HTMLAudioInstance.ts:359
Method_updateListener
Callback for update listener
src/webaudio/WebAudioInstance.ts:416
Methodamount
The amount of distortion to set.
src/filters/DistortionFilter.ts:37
MethodaudioBufferReadyFn
(err: Error, buffer: AudioBuffer)
src/webaudio/WebAudioMedia.ts:156
MethodaudioContext
* The WebAudio API AudioContext object. * @readonly * @type {AudioContext}
src/webaudio/WebAudioContext.ts:258
MethodaudioContext
* HTML Audio does not support `audioContext` * @readonly * @type {AudioContext}
src/htmlaudio/HTMLAudioContext.ts:55
Methodbuffer
Gets and sets the buffer.
src/webaudio/WebAudioMedia.ts:102
MethodbufferSize
* Get buffer size of `ScriptProcessorNode`. * @readonly
src/webaudio/WebAudioNodes.ts:137
Functioncomplete
()
test/suite.ts:167
Methodconstructor
()
src/SoundLibrary.ts:41
Methodconstructor
* @param parent - The parent sound * @param options - Data associated with object.
src/SoundSprite.ts:77
next →1–100 of 246, ranked by callers