Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1025347 // lavaPlayer_printPlayerEvents

JavaX fragment (include)

svoid lavaPlayer_printPlayerEvents(AudioPlayer player) {
  DynModule mod = dm_current_mandatory();
  player.addListener(e -> {
    temp dm_enter(mod);
    print("Audio event: " + e);
    if (e cast TrackExceptionEvent)
      printStackTrace(e.exception);
  });
}

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: #1025347
Snippet name: lavaPlayer_printPlayerEvents
Eternal ID of this version: #1025347/3
Text MD5: d69769dc9297231d7e94f66b956c330a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-24 02:12:47
Source code size: 270 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 246 / 289
Version history: 2 change(s)
Referenced in: [show references]