/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
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;
}