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

13
LINES

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

JavaX fragment (include)

1  
lib 1001094 // JavaLayer 1.0.1
2  
3  
import javazoom.jl.player.*;
4  
5  
static Player playWAV(File f) ctex {
6  
  print("Playing WAV...");
7  
  final Player player = new Player(new FileInputStream(f));
8  
  thread "Playing WAV" {
9  
    player.play();
10  
    player.close();
11  
  }
12  
  ret player;
13  
}

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: 300 / 342
Referenced in: [show references]