mirror of
https://github.com/YuzuZensai/NekoMelody.git
synced 2026-01-31 14:57:58 +00:00
✨ feat: Queue management
This commit is contained in:
@@ -125,6 +125,14 @@ export class Player {
|
|||||||
public getCurrentSampleRate() {
|
public getCurrentSampleRate() {
|
||||||
return this._stream?.information.bitrate || 0;
|
return this._stream?.information.bitrate || 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public getQueue() {
|
||||||
|
return this.queue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public clearQueue() {
|
||||||
|
this.queue = [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createPlayer(providers: Provider[]) {
|
export function createPlayer(providers: Provider[]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user