Пример #1
0
    void OnCreateNewClicked()
    {
        // TODO: in the future, we will want to ask what kind of sound effect the user
        // wants to create. For now the only type is synthesized sound effects, so
        // that's what we create:
        SoundEffect effect = new SoundEffect(System.Guid.NewGuid().ToString(),
                                             GetRandomSoundName(), SoundEffectContent.NewWithSynthParams(SynthParams.GetDefaults()));

        soundEffectSystem.PutSoundEffect(effect);
        foreach (ScrollingListItemUI item in listItems)
        {
            if (item.name == effect.id)
            {
                SetSelectedSound(item);
                return;
            }
        }
    }
 void OnNameChanged(string value)
 {
     soundEffect.name = value;
     soundEffectSystem.PutSoundEffect(soundEffect);
 }