示例#1
0
    public int play_se(SoundEffectData1 sound_effect_data1)
    {
        int sound1 = sound_effect_data1.call();
        int nt1    = 0;

        if (sound1 != -1)
        {
            nt1 = DX.PlaySoundMem(sound1, DX.DX_PLAYTYPE_BACK);
        }

        return(nt1);
    }
示例#2
0
    public int delete_se(SoundEffectData1 sound_effect_data1)
    {
        int sound1 = sound_effect_data1.call();
        int nt1    = -1;

        if (sound1 != -1)
        {
            nt1 = DX.DeleteSoundMem(sound1);
            sound_effect_data1.adress_delete1();
        }

        return(nt1);
    }
示例#3
0
 public int change_sound_volume(SoundEffectData1 sound, int per1)
 {
     return(DX.ChangeVolumeSoundMem((int)(255.0f * per1 / 100), sound.call()));
 }