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

16
LINES

< > BotCompany Repo | #1009241 // Try to play .ogg file with EasyOgg [WORKS]

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

Uses 74K of libraries. Click here for Pure Java version (1369L/9K/32K).

1  
!7
2  
3  
lib 1009238 lib 1009239 lib 1009240 // EasyOgg
4  
5  
import org.newdawn.easyogg.*;
6  
7  
p {
8  
  File ogg1 = loadLibrary("#1001264"); // Cereproc's Leopold speaking
9  
  File ogg2 = new File(getProgramDir(), "bla.ogg");
10  
  copyFile(ogg1, ogg2);
11  
  
12  
  OggClip ogg = new OggClip(newFileInputStream(ogg2));
13  
  ogg.play();
14  
  while (licensed() && !ogg.stopped()) sleep(1);
15  
  ogg.close();
16  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1009241
Snippet name: Try to play .ogg file with EasyOgg [WORKS]
Eternal ID of this version: #1009241/7
Text MD5: 99d0d0e8aed363a375a6171e6ef8f4a9
Transpilation MD5: d37d8b2d0544216c4aa705819f496f5b
Author: stefan
Category: javax / audio
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-07-19 17:41:22
Source code size: 385 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 577 / 690
Version history: 6 change(s)
Referenced in: [show references]