My favorites | Sign in
Project Logo
                
Search
for
Updated Nov 16, 2009 by brackeen
OggHowTo  
Playing Ogg Vorbis files

Playing Ogg Vorbis audio (PulpCore 0.11)

To load Ogg Vorbis files:

  1. Get the JOrbis binary, jorbis-0.0.17.jar
  2. Drop jorbis-0.0.17.jar in your project's "lib" folder.
    • Use the "project" template from the PulpCore "templates" folder.
    • The "lib" folder is in the top-level of the project, just like the "src" and "res" folders.
  3. Drop JOrbisAdapter.java in your project's "src" folder.
    • Your IDE may prefer you put the file in "src/pulpcore/sound/".
  4. Load sounds like normal:
  5. Sound sound = Sound.load("mysound.ogg");
    sound.play();

Ogg Vorbis is fully integrated with PulpCore, so you can pause playback and set the level and pan in realtime, just like a regular Sound.


Sign in to add a comment
Hosted by Google Code