Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pixijs/sound
/ functions
Functions
246 in github.com/pixijs/sound
⨍
Functions
246
◇
Types & classes
49
↓ 33 callers
Method
play
(options: PlayOptions)
src/interfaces/IMediaInstance.ts:92
↓ 23 callers
Function
getInstance
* Internal get function for the singleton instance. * @ignore
src/instance.ts:24
↓ 21 callers
Method
connect
* Connect to the destination. * @param {AudioNode} destination - The destination node to connect the output to
src/filters/Filter.ts:35
↓ 17 callers
Method
disconnect
Completely disconnect filter from destination and source nodes.
src/filters/Filter.ts:41
↓ 15 callers
Method
destroy
()
src/interfaces/IMedia.ts:37
↓ 15 callers
Method
find
* Find a sound by alias. * @param alias - The sound alias reference. * @return Sound object.
src/SoundLibrary.ts:422
↓ 12 callers
Method
add
* @ignore
src/SoundLibrary.ts:142
↓ 12 callers
Method
setParamValue
* 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 callers
Method
exists
* 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 callers
Method
stop
Stop the current instance from playing.
src/interfaces/IMediaInstance.ts:47
↓ 10 callers
Method
getGain
* Get gain amount on a specific frequency. * @return The amount of gain set.
src/filters/EqualizerFilter.ts:216
↓ 10 callers
Method
setGain
* 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 callers
Method
from
* 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 callers
Method
on
(event: 'pause', fn: (paused: boolean) => void, context?: any)
src/interfaces/IMediaInstance.ts:98
↓ 8 callers
Method
remove
* Removes a sound by alias. * @param alias - The sound alias reference. * @return Instance for chaining.
src/SoundLibrary.ts:251
↓ 6 callers
Method
init
(sound: Sound)
src/interfaces/IMedia.ts:35
↓ 6 callers
Method
refresh
Refresh loop, volume and speed based on changes to parent
src/webaudio/WebAudioInstance.ts:182
↓ 5 callers
Method
refresh
Dispatch event to refresh all instances volume, mute, etc.
src/interfaces/IMediaContext.ts:44
↓ 5 callers
Method
refresh
Call whenever the loop, speed or volume changes
src/htmlaudio/HTMLAudioInstance.ts:232
↓ 5 callers
Method
removeAll
* Stops and removes all sounds. They cannot be used after this. * @return Instance for chaining.
src/SoundLibrary.ts:356
↓ 4 callers
Method
_clamp
* Clamp a value * @param value * @param min - Minimum value * @param max - Maximum value * @return Clamped number
src/filters/ReverbFilter.ts:37
↓ 4 callers
Method
_internalStop
* Stop the sound playing * @private
src/htmlaudio/HTMLAudioInstance.ts:153
↓ 4 callers
Method
_rebuild
* Utility function for building an impulse response * from the module parameters.
src/filters/ReverbFilter.ts:88
↓ 4 callers
Method
off
(event: 'resumed' | 'paused' | 'start' | 'end' | 'progress' | 'pause' | 'stop', fn?: (...args: any[])
src/interfaces/IMediaInstance.ts:101
↓ 4 callers
Function
progressBar
(button, progress)
examples/client/demo.js:77
↓ 4 callers
Method
refresh
Internal only, speed, loop, volume change occured.
src/Sound.ts:658
↓ 4 callers
Method
stopAll
* Stops all sounds. * @return Instance for chaining.
src/SoundLibrary.ts:371
↓ 3 callers
Method
_internalStop
Stops the instance.
src/webaudio/WebAudioInstance.ts:472
↓ 3 callers
Method
_update
Internal update the progress.
src/webaudio/WebAudioInstance.ts:422
↓ 3 callers
Method
autoPlayStart
Auto play the first instance.
src/Sound.ts:737
↓ 3 callers
Method
enableTicker
Start the update progress.
src/webaudio/WebAudioInstance.ts:341
↓ 3 callers
Method
isPlaying
* Convenience function to check to see if any sound is playing. * @returns `true` if any sound is currently playing.
src/SoundLibrary.ts:404
↓ 3 callers
Method
load
(callback?: LoadedCallback)
src/interfaces/IMedia.ts:36
↓ 3 callers
Function
refresh
()
examples/client/filters.js:74
↓ 3 callers
Method
refreshPaused
Emit event when muted, volume or speed changes
src/webaudio/WebAudioContext.ts:303
↓ 3 callers
Method
refreshPaused
Dispatches event to refresh the paused state of playing instances.
src/interfaces/IMediaContext.ts:41
↓ 3 callers
Method
resume
Resuming all the instances of this sound from playing
src/Sound.ts:355
↓ 3 callers
Method
volume
Gets and sets the volume.
src/Sound.ts:680
↓ 2 callers
Method
_decode
* Decodes the array buffer. * @param arrayBuffer - From load. * @param {Function} callback - Callback optional
src/webaudio/WebAudioMedia.ts:154
↓ 2 callers
Method
_getOptions
* Internal methods for getting the options object * @private * @param source - The source options * @param overrides - Override default
src/SoundLibrary.ts:187
↓ 2 callers
Method
_now
* Get the current time in seconds. * @return Seconds since start of context
src/webaudio/WebAudioInstance.ts:410
↓ 2 callers
Method
_onComplete
* Sound instance completed. * @param instance
src/Sound.ts:764
↓ 2 callers
Method
_poolInstance
* Destroy/recycling the instance object. * @param instance - Instance to recycle
src/Sound.ts:798
↓ 2 callers
Method
_preload
Starts the preloading of sound.
src/Sound.ts:713
↓ 2 callers
Method
_removeInstances
Removes all instances.
src/Sound.ts:750
↓ 2 callers
Method
close
* 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 callers
Function
getAlias
(asset: ResolvedAsset)
src/soundAsset.ts:7
↓ 2 callers
Method
once
(event: 'pause', fn: (paused: boolean) => void, context?: any)
src/interfaces/IMediaInstance.ts:95
↓ 2 callers
Method
pause
Stops all the instances of this sound from playing.
src/Sound.ts:346
↓ 2 callers
Function
suite
(useLegacy = false)
test/suite.ts:26
↓ 2 callers
Function
togglePlaying
(button)
examples/client/demo.js:68
↓ 1 callers
Method
_createInstance
Create a new instance.
src/Sound.ts:780
↓ 1 callers
Method
_loadUrl
Loads a sound using XHMLHttpRequest object.
src/webaudio/WebAudioMedia.ts:141
↓ 1 callers
Method
_onComplete
* Callback when completed. * @private
src/htmlaudio/HTMLAudioInstance.ts:372
↓ 1 callers
Method
_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 callers
Method
addSprites
* @ignore
src/Sound.ts:414
↓ 1 callers
Method
applyFilters
Connect filters nodes to audio context
src/webaudio/WebAudioInstance.ts:209
↓ 1 callers
Method
cloneBufferSource
* Clones the bufferSource. Used just before playing a sound. * @returns {SourceClone} The clone AudioBufferSourceNode.
src/webaudio/WebAudioNodes.ts:116
↓ 1 callers
Method
create
()
src/interfaces/IMedia.ts:34
↓ 1 callers
Method
decode
* Decode the audio data * @param arrayBuffer - Buffer from loader * @param callback - When completed, error and audioBuffer are parameters.
src/webaudio/WebAudioContext.ts:337
↓ 1 callers
Function
decodeHTMLEntities
(rawStr)
examples/client/index.js:14
↓ 1 callers
Method
init
* 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 callers
Method
init
Reinitialize
src/filters/Filter.ts:25
↓ 1 callers
Method
init
Initializes the instance.
src/webaudio/WebAudioInstance.ts:464
↓ 1 callers
Method
init
* Initialize the instance. * @param {htmlaudio.HTMLAudioMedia} media - Same as constructor
src/htmlaudio/HTMLAudioInstance.ts:135
↓ 1 callers
Method
play
(source?: string | PlayOptions | CompleteCallback, complete?: CompleteCallback)
src/Sound.ts:529
↓ 1 callers
Method
play
* Plays the sound. * @param options - Play options.
src/webaudio/WebAudioInstance.ts:283
↓ 1 callers
Method
play
Start playing the sound/
src/htmlaudio/HTMLAudioInstance.ts:302
↓ 1 callers
Method
playEmptySound
* 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 callers
Method
preferUrl
* 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 callers
Method
refresh
Emit event when muted, volume or speed changes
src/webaudio/WebAudioContext.ts:297
↓ 1 callers
Method
refresh
Internal trigger when volume, mute or speed changes
src/htmlaudio/HTMLAudioContext.ts:25
↓ 1 callers
Method
refreshPaused
Handle changes in paused state. Internal only.
src/Sound.ts:669
↓ 1 callers
Method
refreshPaused
Handle changes in paused state, either globally or sound or instance
src/webaudio/WebAudioInstance.ts:229
↓ 1 callers
Method
refreshPaused
Handle changes in paused state, either globally or sound or instance
src/htmlaudio/HTMLAudioInstance.ts:252
↓ 1 callers
Method
refreshPaused
Internal trigger paused changes
src/htmlaudio/HTMLAudioContext.ts:31
↓ 1 callers
Method
removeSprites
* 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 callers
Method
reset
Reset all frequency bands to have gain of 0
src/filters/EqualizerFilter.ts:357
↓ 1 callers
Function
setInstance
* Internal set function for the singleton instance. * @ignore * @param sound - - Sound library instance
src/instance.ts:13
↓ 1 callers
Method
toggleMute
Toggle mute for all sounds
src/interfaces/IMediaContext.ts:35
↓ 1 callers
Method
toggleMuteAll
* Toggle muted property for all sounds. * @return `true` if all sounds are muted.
src/SoundLibrary.ts:323
↓ 1 callers
Method
togglePause
Toggle pause for all sounds
src/interfaces/IMediaContext.ts:38
↓ 1 callers
Method
togglePauseAll
* Toggle paused property for all sounds. * @return `true` if all sounds are paused.
src/SoundLibrary.ts:290
↓ 1 callers
Function
validateFormats
* 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
Method
AudioContext
* Get AudioContext class, if not supported returns `null` * @type {AudioContext} * @readonly
src/webaudio/WebAudioContext.ts:202
Method
OfflineAudioContext
* 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
Method
amount
The amount of distortion to set.
src/filters/DistortionFilter.ts:37
Method
audioBufferReadyFn
(err: Error, buffer: AudioBuffer)
src/webaudio/WebAudioMedia.ts:156
Method
audioContext
* The WebAudio API AudioContext object. * @readonly * @type {AudioContext}
src/webaudio/WebAudioContext.ts:258
Method
audioContext
* HTML Audio does not support `audioContext` * @readonly * @type {AudioContext}
src/htmlaudio/HTMLAudioContext.ts:55
Method
buffer
Gets and sets the buffer.
src/webaudio/WebAudioMedia.ts:102
Method
bufferSize
* Get buffer size of `ScriptProcessorNode`. * @readonly
src/webaudio/WebAudioNodes.ts:137
Function
complete
()
test/suite.ts:167
Method
constructor
()
src/SoundLibrary.ts:41
Method
constructor
* @param parent - The parent sound * @param options - Data associated with object.
src/SoundSprite.ts:77
next →
1–100 of 246, ranked by callers