Skip to content

Commit

Permalink
🐛 [Src] Clarify that fadeSec type is number
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi committed Nov 23, 2023
1 parent 1a0bff1 commit 7dacb11
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Earwurm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class Earwurm extends EmittenCommon<ManagerEventMap> {
readonly #context = new AudioContext();
readonly #gainNode = this.#context.createGain();

readonly #fadeSec = 0;
readonly #fadeSec: number = 0;
readonly #request: ManagerConfig['request'];
#library: Stack[] = [];
#suspendId: TimeoutId = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/Sound.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class Sound extends EmittenCommon<SoundEventMap> {
// "True private" properties
readonly #source: AudioBufferSourceNode;
readonly #gainNode: GainNode;
readonly #fadeSec = 0;
readonly #fadeSec: number = 0;
#started = false;

constructor(
Expand Down
2 changes: 1 addition & 1 deletion src/Stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class Stack extends EmittenCommon<StackEventMap> {
private _state: StackState = 'idle';

readonly #gainNode: GainNode;
readonly #fadeSec = 0;
readonly #fadeSec: number = 0;
#totalSoundsCreated = 0;
readonly #request: StackConfig['request'];
#queue: Sound[] = [];
Expand Down

0 comments on commit 7dacb11

Please sign in to comment.