fix(Queue): set volume before playing
This commit is contained in:
parent
6d9d427e4e
commit
731e30967c
1 changed files with 2 additions and 3 deletions
|
@ -645,11 +645,10 @@ class Queue<T = unknown> {
|
||||||
|
|
||||||
if (options.seek) this._streamTime = options.seek;
|
if (options.seek) this._streamTime = options.seek;
|
||||||
this._filtersUpdate = options.filtersUpdate;
|
this._filtersUpdate = options.filtersUpdate;
|
||||||
|
this.setVolume(this.options.initialVolume);
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.connection.playStream(resource).then(() => {
|
this.connection.playStream(resource);
|
||||||
this.setVolume(this.options.initialVolume);
|
|
||||||
});
|
|
||||||
}, this.#getBufferingTimeout()).unref();
|
}, this.#getBufferingTimeout()).unref();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue