Package soc.qase.state

Examples of soc.qase.state.Sound


      sound = (int)data[offset];
      if(sound < 0) sound = sound + 256;
      offset = offset + 1;
    }

    return (offset > prevOff ? new Sound(sound) : null);
  }
View Full Code Here


    int y = 0;
    int z = 0;
    int bitmask = 0;
    int offset = off;

    sound = new Sound();
    bitmask = (int)data[offset++];
    sound.setIndex((int)data[offset++]);

    if((bitmask & 0x00000001) != 0)
      sound.setVolume((float)((int)data[offset++]) / 255);
View Full Code Here

/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
  private Sound processSound()
  {
    Sound result = null;
    int sound = 0;

    result = new Sound();

    // process sound
    if((bitmask & 0x04000000) != 0) {
      sound = (int)data[offset];
      if(sound < 0) sound = sound + 256;
      result.setLoop(sound);
      offset = offset + 1;
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of soc.qase.state.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.