fix(player): add force trackEnd when pcmBuffer less than PCM_FRAME_BYTES

This commit is contained in:
EvolvedGhost committed 2026-05-23 22:08:52 +08:00
1 parent 7fc5186c24
commit b7e1f9f30b
2 files changed
+56 -4

No files matched your search

+1 -1
View File
@@ -380,7 +380,7 @@ export class BotInstance extends EventEmitter {
return false;
}
song.url = url;
this.player.play(url);
this.player.play(url, 0, song.duration);
this.database.addPlayHistory({
botId: this.id,
songId: song.id,