LogoPixi’VN
indexInterfaces

Interface: SoundPlayOptions

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

Extends

Extended by

Properties

autostart?

> optional autostart?: boolean

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

Inherited from

SoundOptions.autostart


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.


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.


fadeIn?

> optional fadeIn?: Time

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

Inherited from

SoundOptions.fadeIn


fadeOut?

> optional fadeOut?: Time

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

Inherited from

SoundOptions.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

SoundOptions.filters


loop?

> optional loop?: boolean

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

Inherited from

SoundOptions.loop


loopEnd?

> optional loopEnd?: Time

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

Inherited from

SoundOptions.loopEnd


loopStart?

> optional loopStart?: Time

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

Inherited from

SoundOptions.loopStart


mute?

> optional mute?: boolean

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

Inherited from

SoundOptions.mute


~~muted?~~

> optional muted?: boolean

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

Deprecated

Use mute instead.

Inherited from

SoundOptions.muted


playbackRate?

> optional playbackRate?: number

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

Inherited from

SoundOptions.playbackRate


reverse?

> optional reverse?: boolean

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

Inherited from

SoundOptions.reverse


~~speed?~~

> optional speed?: number

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

Deprecated

Use playbackRate instead.

Inherited from

SoundOptions.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

SoundOptions.volume