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

13
LINES

< > BotCompany Repo | #1018664 // playWAV (old)

JavaX fragment (include)

lib 1001094 // JavaLayer 1.0.1

import javazoom.jl.player.*;

static Player playWAV(File f) ctex {
  print("Playing WAV...");
  final Player player = new Player(new FileInputStream(f));
  thread "Playing WAV" {
    player.play();
    player.close();
  }
  ret player;
}

Author comment

Began life as a copy of #1004802

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

-
Snippet ID: #1018664
Snippet name: playWAV (old)
Eternal ID of this version: #1018664/1
Text MD5: 7a0c6eec2c078093e1b7ae318336892a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-08 12:24:12
Source code size: 281 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 285 / 326
Referenced in: