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

17
LINES

< > BotCompany Repo | #1001265 // Try playing .ogg (desktop, JavaLayer)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Uses 206K of libraries. Click here for Pure Java version (235L/2K/7K).

1  
!747
2  
!1001094 // JavaLayer 1.0.1
3  
4  
import javazoom.jl.player.*;
5  
6  
m {
7  
  p {
8  
    File ogg = loadLibrary("#1001264"); // Cereproc's Leopold speaking
9  
    File ogg2 = new File(getProgramDir(), "bla.ogg");
10  
    copyFile(ogg, ogg2);
11  
    print("Playing ogg...: " + ogg2.getAbsolutePath());
12  
    Player player = new Player(new FileInputStream(ogg2));
13  
    player.play();
14  
    player.close();
15  
    print("Done.");
16  
  }
17  
}

Author comment

Began life as a copy of #1001095

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

Comments [hide]

ID Author/Program Comment Date
1116 stefan Hmm, it's quiet... 2015-10-06 12:19:03

add comment

Snippet ID: #1001265
Snippet name: Try playing .ogg (desktop, JavaLayer)
Eternal ID of this version: #1001265/1
Text MD5: 64417bb35e3780274c30942ea47d1549
Transpilation MD5: 5faa419d98de62d35c241e68b179fcd8
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-06 12:12:15
Source code size: 419 bytes / 17 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 947 / 974
Referenced in: [show references]