Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pixijs/sound
/ functions
Functions
246 in github.com/pixijs/sound
⨍
Functions
246
◇
Types & classes
49
Method
constructor
* Use `Sound.from` * @ignore
src/Sound.ts:283
Method
constructor
* @param input - The source audio node * @param output - The output audio node
src/Filterable.ts:23
Method
constructor
* @param f32 - Default gain for 32 Hz * @param f64 - Default gain for 64 Hz * @param f125 - Default gain for 125 Hz * @param f250 - Def
src/filters/EqualizerFilter.ts:103
Method
constructor
()
src/filters/MonoFilter.ts:14
Method
constructor
* @param seconds - Seconds for reverb * @param decay - The decay length * @param reverse - Reverse reverb
src/filters/ReverbFilter.ts:21
Method
constructor
()
src/filters/StreamFilter.ts:13
Method
constructor
@param pan - The amount of panning, -1 is left, 1 is right, 0 is centered.
src/filters/StereoFilter.ts:22
Method
constructor
@param amount - The amount of distoration from 0 to 1.
src/filters/DistortionFilter.ts:18
Method
constructor
()
src/filters/TelephoneFilter.ts:12
Method
constructor
* @param {AudioNode} destination - The audio node to use as the destination for the input AudioNode * @param {AudioNode} [source] - Optional outp
src/filters/Filter.ts:19
Method
constructor
()
src/webaudio/WebAudioContext.ts:70
Method
constructor
(media: WebAudioMedia)
src/webaudio/WebAudioInstance.ts:68
Method
constructor
* @param context - The audio context.
src/webaudio/WebAudioNodes.ts:56
Method
constructor
@param parent - Parent element
src/htmlaudio/HTMLAudioInstance.ts:59
Method
context
* The global context to use. * @readonly
src/SoundLibrary.ts:69
Method
context
Instance of the media context.
src/Sound.ts:340
Method
context
()
src/webaudio/WebAudioMedia.ts:71
Method
context
* Reference to the context. * @readonly
src/htmlaudio/HTMLAudioMedia.ts:56
Method
create
()
src/webaudio/WebAudioMedia.ts:65
Method
create
()
src/htmlaudio/HTMLAudioMedia.ts:29
Method
decay
* Decay value from 0 to 100 * @default 2
src/filters/ReverbFilter.ts:60
Method
destination
The destination output audio node
src/Filterable.ts:30
Method
destroy
Destroy and don't use after this
src/SoundSprite.ts:104
Method
destroy
Destructor, safer to use `SoundLibrary.remove(alias)` to remove this sound.
src/Sound.ts:438
Method
destroy
Cleans up.
src/Filterable.ts:85
Method
destroy
()
src/filters/EqualizerFilter.ts:365
Method
destroy
()
src/filters/MonoFilter.ts:31
Method
destroy
()
src/filters/StreamFilter.ts:35
Method
destroy
()
src/filters/StereoFilter.ts:71
Method
destroy
()
src/filters/DistortionFilter.ts:65
Method
destroy
Destroy the filter and don't use after this.
src/filters/Filter.ts:47
Method
destroy
Destroy this context.
src/webaudio/WebAudioContext.ts:230
Method
destroy
Destructor, safer to use `SoundLibrary.remove(alias)` to remove this sound.
src/webaudio/WebAudioMedia.ts:46
Method
destroy
Don't use after this.
src/webaudio/WebAudioInstance.ts:369
Method
destroy
Cleans up.
src/webaudio/WebAudioNodes.ts:92
Method
destroy
Destroy the context and don't use after this.
src/interfaces/IMediaContext.ts:47
Method
destroy
()
src/interfaces/IMediaInstance.ts:93
Method
destroy
()
src/htmlaudio/HTMLAudioMedia.ts:72
Method
destroy
Don't use after this.
src/htmlaudio/HTMLAudioInstance.ts:385
Method
destroy
Destroy and don't use after this
src/htmlaudio/HTMLAudioContext.ts:87
Method
disableAutoPause
* This disables auto-pause all playback when the window blurs (WebAudio only). * This is helpful to keep from playing sounds when the user switch
src/SoundLibrary.ts:237
Method
duration
* Get the length of a sound in seconds. * @param alias - The sound alias reference. * @return The current duration in seconds.
src/SoundLibrary.ts:525
Method
duration
Get the duration of the audio in seconds.
src/Sound.ts:731
Method
duration
()
src/webaudio/WebAudioMedia.ts:93
Method
duration
* THe duration of the media in seconds. * @readonly
src/htmlaudio/HTMLAudioMedia.ts:47
Method
f125
* Gain at 125 Hz frequencey. * @default 0
src/filters/EqualizerFilter.ts:256
Method
f16k
* Gain at 16 KHz frequencey. * @default 0
src/filters/EqualizerFilter.ts:347
Method
f1k
* Gain at 1 KHz frequencey. * @default 0
src/filters/EqualizerFilter.ts:295
Method
f250
* Gain at 250 Hz frequencey. * @default 0
src/filters/EqualizerFilter.ts:269
Method
f2k
* Gain at 2 KHz frequencey. * @default 0
src/filters/EqualizerFilter.ts:308
Method
f32
* Gain at 32 Hz frequencey. * @default 0
src/filters/EqualizerFilter.ts:230
Method
f4k
* Gain at 4 KHz frequencey. * @default 0
src/filters/EqualizerFilter.ts:321
Method
f500
* Gain at 500 Hz frequencey. * @default 0
src/filters/EqualizerFilter.ts:282
Method
f64
* Gain at 64 Hz frequencey. * @default 0
src/filters/EqualizerFilter.ts:243
Method
f8k
* Gain at 8 KHz frequencey. * @default 0
src/filters/EqualizerFilter.ts:334
Method
filters
Set the filters. Only supported with WebAudio.
src/Sound.ts:386
Method
filters
The collection of filters.
src/Filterable.ts:36
Method
filters
()
src/webaudio/WebAudioMedia.ts:83
Method
filters
The collection of filters.
src/webaudio/WebAudioInstance.ts:164
Method
filters
The collection of filters, does not apply to HTML Audio.
src/htmlaudio/HTMLAudioMedia.ts:62
Method
filters
* HTML Audio does not support filters, this is non-functional API.
src/htmlaudio/HTMLAudioInstance.ts:220
Method
filters
* HTML Audio does not support filters, this is non-functional API.
src/htmlaudio/HTMLAudioContext.ts:39
Method
filtersAll
* Apply filters to all sounds. Can be useful * for setting global planning or global effects. * **Only supported with WebAudio.** * @ex
src/SoundLibrary.ts:85
Function
get
()
src/browser.ts:16
Method
handleError
(err: Error)
src/webaudio/WebAudioContext.ts:339
Method
init
* Re-initialize without constructing. * @param parent - - Instance of parent Sound container
src/webaudio/WebAudioMedia.ts:37
Method
init
(parent: IMedia)
src/interfaces/IMediaInstance.ts:91
Method
init
(parent: Sound)
src/htmlaudio/HTMLAudioMedia.ts:18
Method
instances
Gets the list of instances that are currently being played of this sound.
src/Sound.ts:719
Method
isPlayable
If the current sound is playable (loaded).
src/Sound.ts:476
Method
isPlayable
()
src/webaudio/WebAudioMedia.ts:77
Method
isPlayable
* If the audio media is playable (ready). * @readonly
src/htmlaudio/HTMLAudioMedia.ts:38
Function
load
Load the sound file, this is mostly handled by Sound.from()
src/soundAsset.ts:46
Method
load
(callback?: LoadedCallback)
src/webaudio/WebAudioMedia.ts:118
Method
load
(callback?: LoadedCallback)
src/htmlaudio/HTMLAudioMedia.ts:97
Function
loaded
(err, sound)
src/soundAsset.ts:53
Function
loaded
()
examples/client/sprites.js:53
Method
loop
Gets and sets the looping.
src/Sound.ts:702
Method
loop
If the sound instance should loop playback
src/webaudio/WebAudioInstance.ts:153
Method
loop
If the sound instance should loop playback
src/htmlaudio/HTMLAudioInstance.ts:196
Method
muteAll
* Mutes all playing sounds. * @return Instance for chaining.
src/SoundLibrary.ts:332
Method
muted
Gets and sets the muted flag.
src/Sound.ts:691
Method
muted
`true` if the sound is muted
src/webaudio/WebAudioInstance.ts:142
Method
muted
`true` if the sound is muted
src/htmlaudio/HTMLAudioInstance.ts:207
Method
nodes
Get the current chained nodes object
src/webaudio/WebAudioMedia.ts:112
Method
offlineContext
* The WebAudio API OfflineAudioContext object. * @readonly * @type {OfflineAudioContext}
src/webaudio/WebAudioContext.ts:268
Method
onAbort
()
src/htmlaudio/HTMLAudioMedia.ts:143
Method
onBlur
Handle mobile WebAudio context suspend
src/webaudio/WebAudioContext.ts:141
Method
onError
()
src/htmlaudio/HTMLAudioMedia.ts:153
Method
onFocus
Handle mobile WebAudio context resume
src/webaudio/WebAudioContext.ts:122
Method
onLoad
()
src/htmlaudio/HTMLAudioMedia.ts:130
Method
pan
Set the amount of panning, where -1 is left, 1 is right, and 0 is centered
src/filters/StereoFilter.ts:54
Method
pause
* Pauses a sound. * @param alias - The sound alias reference. * @return Sound object.
src/SoundLibrary.ts:469
Method
pauseAll
* Pauses any playing sounds. * @return Instance for chaining.
src/SoundLibrary.ts:299
Method
paused
Stops all the instances of this sound from playing.
src/Sound.ts:364
Method
paused
* Pauses all sounds, even though we handle this at the instance * level, we'll also pause the audioContext so that the * time used to comput
src/webaudio/WebAudioContext.ts:279
Method
paused
Pauses the sound.
src/webaudio/WebAudioInstance.ts:357
Method
paused
Pauses the sound.
src/htmlaudio/HTMLAudioInstance.ts:103
Function
play
()
examples/client/demo.js:37
Method
play
* Plays a sound. * @param alias - The sound alias reference. * @param {PlayOptions|Function} options - The options or callback when done.
src/SoundLibrary.ts:447
← previous
next →
101–200 of 246, ranked by callers