// Sound Preset を設定 internal void _InitPresetSounds() { Cube.SoundOperation[] sounds = new Cube.SoundOperation[3]; sounds[0] = new Cube.SoundOperation(200, 255, 48); sounds[1] = new Cube.SoundOperation(200, 255, 50); sounds[2] = new Cube.SoundOperation(200, 255, 52); impl.presetSounds.Add(sounds); }
public override void StopSound() { Cube.SoundOperation[] ops = new Cube.SoundOperation[1]; ops[0] = new Cube.SoundOperation(100, 0, 128); soundsQ.Enqueue(ops); soundRepeatQ.Enqueue(1); soundTimeQ.Enqueue(Time.time); }
internal override void PlaySound_PowerOff() { Cube.SoundOperation[] ops = new Cube.SoundOperation[3]; int dur = 120; ops[0] = new Cube.SoundOperation(dur, 255, 70); ops[1] = new Cube.SoundOperation(dur, 255, 66); ops[2] = new Cube.SoundOperation(dur * 2, 255, 59); PlaySound(1, ops); }
internal override void PlaySound_Disconnect() { Cube.SoundOperation[] ops = new Cube.SoundOperation[4]; int dur = 120; ops[0] = new Cube.SoundOperation(dur, 255, 70); ops[1] = new Cube.SoundOperation(dur, 255, 66); ops[2] = new Cube.SoundOperation(dur, 255, 64); ops[3] = new Cube.SoundOperation(dur * 3, 255, 59); PlaySound(1, ops); }
public override void StopSound() { Cube.SoundOperation[] ops = new Cube.SoundOperation[1]; ops[0] = new Cube.SoundOperation(100, 0, 128); PlaySound(1, ops); }