What's new? | Help | Directory | Sign in
Google
  
  
  
  
    
Search
for
Updated Mar 06, 2008 by brackeen
OggHowTo  
Playing Ogg Vorbis files

Playing Ogg Vorbis audio (PulpCore 0.11)

To load Ogg Vorbis files:

  1. Get JOrbis here: http://www.jcraft.com/jorbis/
  2. Drop jorbis-0.0.15.jar and jogg-0.0.7.jar in your lib/ directory (using the "project" template from the PulpCore templates/ directory)
  3. Drop JOrbisAdapter.java in your src/ directory.
  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 with regular SoundClips.


Sign in to add a comment