Ejemplo n.º 1
0
        public BasicPlaySound()
        {
            InitializeComponent();

            Info.Text = AppResources.BasicsPlaySoundInfo;

            sound = Global.Yse.CreateSound();
            sound.Create("snare", null, true);
            sound.Volume = 0.5f;
        }
Ejemplo n.º 2
0
        public BasicReverb()
        {
            InitializeComponent();
            Info.Text = AppResources.BasicsReverbInfo;

            foreach (string name in stringToPreset.Keys)
            {
                ReverbChoice.Items.Add(name);
            }

            reverb.Active = true;
            Global.Yse.ChannelMaster.AttachReverb();

            snare = Global.Yse.CreateSound();
            snare.Create("snare", null, true);
            snare.Play();
        }
Ejemplo n.º 3
0
        public BasicChannels()
        {
            InitializeComponent();

            Info.Text = AppResources.BasicsChannelsInfo;

            ambient = Global.Yse.CreateSound();
            ambient.Create("flies", Global.Yse.ChannelAmbient, true);
            ambient.Play();

            music = Global.Yse.CreateSound();
            music.Create("my2chords", Global.Yse.ChannelMusic, true);
            music.Play();

            voice = Global.Yse.CreateSound();
            voice.Create("countdown", Global.Yse.ChannelVoice, true);
            voice.Play();
        }
Ejemplo n.º 4
0
        public Basic3D()
        {
            InitializeComponent();

            Info.Text = AppResources.Basics3DInfo;

            listenerPos.Set(0f, 0f, 0f);
            Global.Yse.Listener.Pos(listenerPos / 10f);

            sound1.Create("contact", null, true);
            sound1Pos.Set(-100f, 30f, 0f);
            sound1.SetPos(sound1Pos / 10f);
            sound1.Play();

            sound2.Create("drone", null, true);
            sound2Pos.Set(100f, -10f, 0f);
            sound2.SetPos(sound2Pos / 10f);
            sound2.Play();
        }