Skip to content

Latest commit

 

History

History
52 lines (30 loc) · 849 Bytes

File metadata and controls

52 lines (30 loc) · 849 Bytes

retro-engine / Exports / Sound

Class: Sound

Class for playing audio files.

Table of contents

Constructors

Methods

Constructors

constructor

new Sound(filepath)

Parameters

Name Type
filepath string

Defined in

src/audio.ts:14

Methods

play

Play the loaded audio file.

play(gain?, pan?): void

Parameters

Name Type Default value
gain number 1
pan number 0

Returns

void

Defined in

src/audio.ts:30