/// <summary> /// Show info /// </summary> /// <remarks></remarks> public void showinfo() { Label3.Text = ""; Label4.Text = ""; Label5.Text = ""; Label6.Text = ""; Label7.Text = ""; Label8.Text = ""; Label9.Text = ""; TID3InfoEx info = new TID3InfoEx(); if (player.LoadID3Ex(ref info, true)) { Label3.Text = info.Title; Label4.Text = info.Artist; Label5.Text = info.Album; Label6.Text = info.Year; Label7.Text = info.Track; Label8.Text = info.Encoder; Label9.Text = info.Comment; } descr.Text = "Format:" + System.Environment.NewLine + "Length:" + System.Environment.NewLine + "Samplerate:" + System.Environment.NewLine + "Bitrate:" + System.Environment.NewLine + "Channel:" + System.Environment.NewLine + "VBR:"; TStreamInfo StreamInfo = new TStreamInfo(); player.GetStreamInfo(ref StreamInfo); descr1.Text = StreamInfo.Description + System.Environment.NewLine + System.Convert.ToString(StreamInfo.Length.hms.hour) + " : " + System.Convert.ToString(StreamInfo.Length.hms.minute) + " : " + System.Convert.ToString(StreamInfo.Length.hms.second) + System.Environment.NewLine + System.Convert.ToString(StreamInfo.SamplingRate) + " Hz" + System.Environment.NewLine + System.Convert.ToString(StreamInfo.Bitrate) + " kbps" + System.Environment.NewLine + System.Convert.ToString(StreamInfo.ChannelNumber) + System.Environment.NewLine + System.Convert.ToString(StreamInfo.VBR); if (info.Picture.PicturePresent) pictureBox2.Image = info.Picture.Bitmap; ProgressBar1.Minimum = 0; ProgressBar1.Maximum = System.Convert.ToInt32((int)(StreamInfo.Length.sec)); ProgressBar1.Value = 0; Timer1.Enabled = true; Timer2.Enabled = true; }