Esempio n. 1
0
        private void frmCUEPlayer_Load(object sender, EventArgs e)
        {
            if (Properties.Settings.Default.AppSettings == null)
            {
                Properties.Settings.Default.AppSettings = new CUEPlayerSettings();
                Properties.Settings.Default.AppSettings.IcecastServers.Add(new CUETools.Codecs.Icecast.IcecastSettingsData());
            }

            //System.Data.SqlServerCe.SqlCeDataAdapter ad = new System.Data.SqlServerCe.SqlCeDataAdapter();
            //ad.SelectCommand = new System.Data.SqlServerCe.SqlCeCommand("SELECT * FROM Playlist WHERE track=1", adapterPlayList.Connection);
            //ad.Fill(dataSet.Playlist);
            adapterPlayList.Fill(dataSet.Playlist);

            _mixer = new MixingSource(new AudioPCMConfig(32, 2, 44100), 100, 2);

            outputA.Init(this);
            browser.Init(this);
            playlist.Init(this);
            deckB.Init(this, null);
            deckA.Init(this, deckB);
            Icecast icecast = new Icecast();

            icecast.Init(this);
            //LayoutMdi(MdiLayout.TileHorizontal);

            browser.Location  = new Point(0, 0);
            browser.Height    = ClientRectangle.Height - 5 - menuStrip1.Height;
            playlist.Location = new Point(browser.Location.X + browser.Width, 0);
            playlist.Height   = ClientRectangle.Height - 5 - menuStrip1.Height;
            deckA.Location    = new Point(playlist.Location.X + playlist.Width, 0);
            deckB.Location    = new Point(playlist.Location.X + playlist.Width, deckA.Height);
            outputA.Location  = new Point(deckA.Location.X + deckA.Width, 0);
            icecast.Location  = new Point(deckA.Location.X + deckA.Width, outputA.Height);

            mixThread              = new Thread(MixThread);
            mixThread.Priority     = ThreadPriority.AboveNormal;
            mixThread.IsBackground = true;
            mixThread.Name         = "Mixer";
            mixThread.Start();
        }
Esempio n. 2
0
		private void frmCUEPlayer_Load(object sender, EventArgs e)
		{
			if (Properties.Settings.Default.AppSettings == null)
			{
				Properties.Settings.Default.AppSettings = new CUEPlayerSettings();
				Properties.Settings.Default.AppSettings.IcecastServers.Add(new CUETools.Codecs.Icecast.IcecastSettingsData());
			}

			//System.Data.SqlServerCe.SqlCeDataAdapter ad = new System.Data.SqlServerCe.SqlCeDataAdapter();
			//ad.SelectCommand = new System.Data.SqlServerCe.SqlCeCommand("SELECT * FROM Playlist WHERE track=1", adapterPlayList.Connection);
			//ad.Fill(dataSet.Playlist);
			adapterPlayList.Fill(dataSet.Playlist);

			_mixer = new MixingSource(new AudioPCMConfig(32, 2, 44100), 100, 2);

			outputA.Init(this);
			browser.Init(this);
			playlist.Init(this);
			deckB.Init(this, null);
			deckA.Init(this, deckB);
			Icecast icecast = new Icecast();
			icecast.Init(this);
			//LayoutMdi(MdiLayout.TileHorizontal);

			browser.Location = new Point(0, 0);
			browser.Height = ClientRectangle.Height - 5 - menuStrip1.Height;
			playlist.Location = new Point(browser.Location.X + browser.Width, 0);
			playlist.Height = ClientRectangle.Height - 5 - menuStrip1.Height;
			deckA.Location = new Point(playlist.Location.X + playlist.Width, 0);
			deckB.Location = new Point(playlist.Location.X + playlist.Width, deckA.Height);
			outputA.Location = new Point(deckA.Location.X + deckA.Width, 0);
			icecast.Location = new Point(deckA.Location.X + deckA.Width, outputA.Height);

			mixThread = new Thread(MixThread);
			mixThread.Priority = ThreadPriority.AboveNormal;
			mixThread.IsBackground = true;
			mixThread.Name = "Mixer";
			mixThread.Start();
		}
Esempio n. 3
0
		private void icecastToolStripMenuItem_Click(object sender, EventArgs e)
		{
			Icecast icecast = new Icecast();
			icecast.Init(this);
		}
Esempio n. 4
0
        private void icecastToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Icecast icecast = new Icecast();

            icecast.Init(this);
        }