Skip to content

Commit 434f8b2

Browse files
committed
added new get and setLoopQueue methods
1 parent 3a95942 commit 434f8b2

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

dist/library/core.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ export declare class PlayerCore {
8989
getQueue(): ISound[];
9090
setVolume(volume: number): void;
9191
getVolume(): number;
92+
setLoopQueue(loppQueue: boolean): void;
93+
getLoopQueue(): boolean;
9294
mute(): void;
9395
unMute(): void;
9496
isMuted(): boolean;

src/library/core.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,18 @@ export class PlayerCore {
350350

351351
}
352352

353+
public setLoopQueue(loppQueue: boolean): void {
354+
355+
this._loopQueue = loppQueue;
356+
357+
}
358+
359+
public getLoopQueue(): boolean {
360+
361+
return this._loopQueue;
362+
363+
}
364+
353365
public mute(): void {
354366

355367
const currentVolume = this.getVolume();

0 commit comments

Comments
 (0)