Request: SoundSystem methods

I appear to have become quite the poster here…  Hope I don’t wear out my welcome. :oops:



Would it be possible to get the following methods added to com.jmex.sound.openAL.SoundSystem

Or provide similar access / functionality somehow…



     public static boolean isSamplePlaying(int sample)
     {
         return sample3D[sample].isPlaying();
     }
     public static void playSample(int sample)
     {
        sample3D[sample].play();
     }
     public static void pauseSample(int sample)
     {
        sample3D[sample].pause();
     }
     public static void stopSample(int sample)
     {
        sample3D[sample].stop();
     }



I'd like to be able to pause, resume, and loop my sound effects, rather than just statically triggering them. Sample3D has the functionality (except looping, but I can sort of hack that), but SoundSystem doesn't provide access...

Spacecookies

Hey, you can post as much as you like :slight_smile: - and 8 posts is not that much :wink:



I have added those methods like you posted them. Maybe some checks (!= null and whatnot) could be added and javadocs… but as the SoundSystem is quite hacky already (e.g. no javadocs) I just committed them

I'm so disapointed in you Irrisor. :-p



darkfrog

Thank you!



Haha, though I might be switching to this one now… :stuck_out_tongue:

http://www.jmonkeyengine.com/jmeforum/index.php?topic=3080.0



Spacecookies