Androz2091 / Androz2091/discord-player

Bun lags and freeze

Đang mở
#1,991 6 bình luận 1 reaction 0 người được giao Xem trên GitHub
bug discussion need repro
Ngôn ngữ chính
TypeScript
Star
638
Fork
197
Merge trung bình
2 phút
Pull request đã merge (30 ngày)
1

Mô tả

**Describe the bug**
When using the library, more precisely when the library uses the deprecated discord-voip dependency using bun and not node, an error message appears and my audio stream cuts out and then resumes, catching up with the delay

**To Reproduce**
Steps to reproduce the behavior:
1. Use the lib with bun ?
2. Wait 2-3s and then the bug appear

**Expected behavior**
The sound cuts then restart with accelerating until it had reach the missing time.
```
TimeoutNegativeWarning: -29 is a negative number.
Timeout duration was set to 1.
at prepareNextAudioFrame (/home/wiibleyde/Documents/Perso/Eve/node_modules/discord-voip/dist/index.js:128:28)
```

**Please complete the following information:**
- Node Version: 22.14.0
- Bun Version: 1.2.7 (https://bun.sh/)
- Discord Player Version: 7.1.0
- Discord.js Version: 14.16.3

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.