LogoPixi’VN
indexInterfaces

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

SoundPlayOptions.autostart


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

SoundPlayOptions.delay


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

SoundPlayOptions.elapsed


fadeIn?

> optional fadeIn?: Time

Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:13

Inherited from

SoundPlayOptions.fadeIn


fadeOut?

> optional fadeOut?: Time

Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:14

Inherited from

SoundPlayOptions.fadeOut


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

SoundPlayOptions.filters


loop?

> optional loop?: boolean

Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:8

Inherited from

SoundPlayOptions.loop


loopEnd?

> optional loopEnd?: Time

Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:11

Inherited from

SoundPlayOptions.loopEnd


loopStart?

> optional loopStart?: Time

Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:10

Inherited from

SoundPlayOptions.loopStart


mute?

> optional mute?: boolean

Defined in: node_modules/tone/build/esm/source/Source.d.ts:10

Inherited from

SoundPlayOptions.mute


~~muted?~~

> optional muted?: boolean

Defined in: src/sound/interfaces/SoundOptions.ts:42

Deprecated

Use mute instead.

Inherited from

SoundPlayOptions.muted


playbackRate?

> optional playbackRate?: number

Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:7

Inherited from

SoundPlayOptions.playbackRate


reverse?

> optional reverse?: boolean

Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:12

Inherited from

SoundPlayOptions.reverse


~~speed?~~

> optional speed?: number

Defined in: src/sound/interfaces/SoundOptions.ts:38

Deprecated

Use playbackRate instead.

Inherited from

SoundPlayOptions.speed


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.

Inherited from

SoundPlayOptions.volume