sclass JDA_AudioPlayerSendHandler implements AudioSendHandler { AudioPlayer audioPlayer; AudioFrame lastFrame; *(AudioPlayer *audioPlayer) {} public bool canProvide() { ret (lastFrame = audioPlayer.provide()) != null; } public byte[] provide20MsAudio() { return lastFrame.getData(); } public bool isOpus() { true; } }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025340 |
Snippet name: | JDA_AudioPlayerSendHandler - helper class for JDA+LavaPlayer |
Eternal ID of this version: | #1025340/1 |
Text MD5: | e7ef8fbdc933eb3978a40775036453b9 |
Author: | stefan |
Category: | javax / discord |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-24 00:12:52 |
Source code size: | 360 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 316 / 653 |
Referenced in: | [show references] |