Package org.open2jam.sound

Examples of org.open2jam.sound.Sound


  sounds = new HashMap<Integer, Sound>();
        for(Entry<Integer, SampleData> entry : chart.getSamples().entrySet())
        {
            SampleData sampleData = entry.getValue();
            try {
                Sound sound = soundSystem.load(sampleData);
                sounds.put(entry.getKey(), sound);
            } catch (SoundSystemException ex) {
                java.util.logging.Logger.getLogger(Render.class.getName()).log(Level.SEVERE, "{0}", ex);
            }
      try {
View Full Code Here


    /* play a sample */
    public SoundInstance queueSample(Event.SoundSample soundSample)
    {
        if(soundSample == null) return null;
 
  Sound sound = sounds.get(soundSample.sample_id);
        if(sound == null)return null;
       
        try {
            return sound.play(soundSample.isBGM() ? SoundChannel.BGM : SoundChannel.KEY,
                    1.0f, soundSample.pan);
        } catch (SoundSystemException ex) {
            java.util.logging.Logger.getLogger(Render.class.getName()).log(Level.SEVERE, "{0}", ex);
            return null;
        }
View Full Code Here

TOP

Related Classes of org.open2jam.sound.Sound

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.