public Dictaphone() { this.recEx = new Alvas.Audio.RecorderEx(); this.playEx = new Alvas.Audio.PlayerEx(); // // recEx // this.recEx.Close += new System.EventHandler(this.CloseRecorder); this.recEx.Data += new Alvas.Audio.RecorderEx.DataEventHandler(this.DataRecorder); this.recEx.Open += new System.EventHandler(this.OpenRecorder); // // playEx // this.playEx.Close += new System.EventHandler(this.playerEx_Close); this.playEx.Open += new System.EventHandler(this.playerEx_Open); this.playEx.Done += new Alvas.Audio.PlayerEx.DoneEventHandler(this.playerEx_Done); FormatDetails[] tmp = AudioCompressionManager.GetFormatList(new WaveFormat()); Format = AudioCompressionManager.GetFormatList(new WaveFormat())[47].FormatHandle; //SoundLevelMeter vum = new SoundLevelMeter(); //vum.BackColor = System.Drawing.Color.Black; //vum.ForeColor = System.Drawing.Color.Lime; //vum.Location = new System.Drawing.Point(2, 308); //vum.Name = "vum"; //vum.Size = new System.Drawing.Size(217, 69); //vum.TabIndex = 40; //SoundLevelMeter = vum; }
private void Init() { InitWaveformVisualizer(); ofdAudio.Filter = "*.wav|*.wav|*.mp3|*.mp3|*.avi|*.avi|*.vox|*.vox|*.wma;*.wmv;*.asf;*.mpg;*.aif;*.au;*.snd;*.mid;*.rmi;*.ogg;*.flac;*.cda;*.ac3;*.dts;*.mka;*.mkv;*.mpc;*.m4a;*.aac;*.mpa;*.mp2;*.m1a;*.m2a|*.wma;*.wmv;*.asf;*.mpg;*.aif;*.au;*.snd;*.mid;*.rmi;*.ogg;*.flac;*.cda;*.ac3;*.dts;*.mka;*.mkv;*.mpc;*.m4a;*.aac;*.mpa;*.mp2;*.m1a;*.m2a|*.*|*.*"; tbbOpen.Enabled = true; plex = new PlayerEx(); plex.Done += new PlayerEx.DoneEventHandler(plex_Done); plex.BufferSizeInMS = 100; pgMain.SelectedObject = wfv; }
private void EnumPlayers() { int count = PlayerEx.PlayerCount; if (count > 0) { for (int i = -1; i < count; i++) { cbPlayer.Items.Add(PlayerEx.GetPlayerName(i)); } cbPlayer.SelectedIndex = 0; } }
public Dictaphone() { this.recEx = new Alvas.Audio.RecorderEx(); this.playEx = new Alvas.Audio.PlayerEx(); // // recEx // this.recEx.Close += new System.EventHandler(this.CloseRecorder); this.recEx.Data += new Alvas.Audio.RecorderEx.DataEventHandler(this.DataRecorder); this.recEx.Open += new System.EventHandler(this.OpenRecorder); // // playEx // this.playEx.Close += new System.EventHandler(this.playerEx_Close); this.playEx.Open += new System.EventHandler(this.playerEx_Open); this.playEx.Done += new Alvas.Audio.PlayerEx.DoneEventHandler(this.playerEx_Done); }