Interface: SoundPlayOptionsWithChannel
Defined in: src/sound/interfaces/SoundOptions.ts:58
Extends
Properties
autostart?
> optional autostart?: boolean
Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:9
Inherited from
channel?
> optional channel?: string
Defined in: src/sound/interfaces/SoundOptions.ts:64
The alias of the audio channel to play the sound on. If the channel does
not exist it will be created automatically.
Defaults to SoundManagerInterface.defaultChannelAlias ("general").
delay?
> optional delay?: number
Defined in: src/sound/interfaces/SoundOptions.ts:51
The delay in seconds before playback starts. If specified, playback is scheduled to begin after the delay has elapsed rather than starting immediately in a paused state.
Inherited from
elapsed?
> optional elapsed?: number
Defined in: src/sound/interfaces/SoundOptions.ts:55
The offset in seconds from the start of the sound at which to begin playback.
Inherited from
fadeIn?
> optional fadeIn?: Time
Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:13
Inherited from
fadeOut?
> optional fadeOut?: Time
Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:14
Inherited from
filters?
> optional filters?: ToneAudioNode<ToneWithContextOptions>[]
Defined in: src/sound/interfaces/SoundOptions.ts:34
A collection of audio filters/effects to apply to this sound.
Install "tone" for the full list of available filters.
Example
import * as Tone from "tone";
const filters = [new Tone.FeedbackDelay("8n", 0.5)];
Inherited from
loop?
> optional loop?: boolean
Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:8
Inherited from
loopEnd?
> optional loopEnd?: Time
Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:11
Inherited from
loopStart?
> optional loopStart?: Time
Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:10
Inherited from
mute?
> optional mute?: boolean
Defined in: node_modules/tone/build/esm/source/Source.d.ts:10
Inherited from
~~muted?~~
> optional muted?: boolean
Defined in: src/sound/interfaces/SoundOptions.ts:42
Deprecated
Use mute instead.
Inherited from
playbackRate?
> optional playbackRate?: number
Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:7
Inherited from
reverse?
> optional reverse?: boolean
Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:12
Inherited from
~~speed?~~
> optional speed?: number
Defined in: src/sound/interfaces/SoundOptions.ts:38
Deprecated
Use playbackRate instead.
Inherited from
volume?
> optional volume?: number
Defined in: src/sound/interfaces/SoundOptions.ts:21
The volume of this sound in the linear range [0, 1], where 0 is silence and 1 is full volume. This is converted to decibels internally before being passed to the Tone.js Player.