mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-02 04:52:50 +08:00
fix(player): add force trackEnd when pcmBuffer less than PCM_FRAME_BYTES
This commit is contained in:
1 parent
7fc5186c24
commit
b7e1f9f30b
2 files changed
+56
-4
No files matched your search
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user