fix(Player): add default highWaterMark to try avoiding aborts
This commit is contained in:
parent
74faa9bad2
commit
21b5d1d0c5
2 changed files with 6 additions and 2 deletions
|
@ -21,7 +21,9 @@ class Player extends EventEmitter<PlayerEvents> {
|
||||||
public readonly client: Client;
|
public readonly client: Client;
|
||||||
public readonly options: PlayerInitOptions = {
|
public readonly options: PlayerInitOptions = {
|
||||||
autoRegisterExtractor: true,
|
autoRegisterExtractor: true,
|
||||||
ytdlOptions: {}
|
ytdlOptions: {
|
||||||
|
highWaterMark: 1 << 25
|
||||||
|
}
|
||||||
};
|
};
|
||||||
public readonly queues = new Collection<Snowflake, Queue>();
|
public readonly queues = new Collection<Snowflake, Queue>();
|
||||||
public readonly voiceUtils = new VoiceUtils();
|
public readonly voiceUtils = new VoiceUtils();
|
||||||
|
|
|
@ -98,7 +98,9 @@ class Queue<T = unknown> {
|
||||||
leaveOnEmpty: true,
|
leaveOnEmpty: true,
|
||||||
leaveOnEmptyCooldown: 1000,
|
leaveOnEmptyCooldown: 1000,
|
||||||
autoSelfDeaf: true,
|
autoSelfDeaf: true,
|
||||||
ytdlOptions: {},
|
ytdlOptions: {
|
||||||
|
highWaterMark: 1 << 25
|
||||||
|
},
|
||||||
initialVolume: 100,
|
initialVolume: 100,
|
||||||
bufferingTimeout: 1000
|
bufferingTimeout: 1000
|
||||||
} as PlayerOptions,
|
} as PlayerOptions,
|
||||||
|
|
Loading…
Reference in a new issue