|
|
OggHowTo
Playing Ogg Vorbis files
Playing Ogg Vorbis audio (PulpCore 0.11)
To load Ogg Vorbis files:
- Get JOrbis here: http://www.jcraft.com/jorbis/
- 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)
- Drop JOrbisAdapter.java in your src/ directory.
- Load sounds like normal:
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
