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).

!747

!1001094 // JavaLayer 1.0.1

import javazoom.jl.player.*;

m {
  p {
    File ogg = loadLibrary("#1001264"); // Cereproc's Leopold speaking
    File ogg2 = new File(getProgramDir(), "bla.ogg");
    copyFile(ogg, ogg2);
    print("Playing ogg...: " + ogg2.getAbsolutePath());
    Player player = new Player(new FileInputStream(ogg2));
    player.play();
    player.close();
    print("Done.");
  }
}

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: 946 / 972
Referenced in: #3000189 - Answer for stefanreich(>> t bla)
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)