/* * public TagLib.File FileTag * { * get { return fileTag; } * set * { * TagLib.File oldValue = fileTag; * fileTag = value; * if (oldValue != fileTag) * NotifyPropertyChanged("FileTag"); * } * } */ public System.Drawing.Bitmap Spectrum(int type, Un4seen.Bass.Misc.Visuals spectrum, int width, int height) { System.Drawing.Bitmap spc = null; System.Drawing.Color colorMyred = System.Drawing.Color.FromArgb(244, 67, 54); System.Drawing.Color colorMyback = System.Drawing.Color.FromArgb(46, 60, 67); switch (type) { case 1: spc = spectrum.CreateSpectrumLinePeak(activeStreamHandle, width, height, colorMyred, System.Drawing.Color.White, colorMyred, colorMyback, 2, 2, 1, 50, true, true, true); break; case 2: spc = spectrum.CreateSpectrumLine(activeStreamHandle, width, height, colorMyred, System.Drawing.Color.White, colorMyback, 2, 1, true, true, true); break; case 3: spc = spectrum.CreateSpectrumWave(activeStreamHandle, width, height, colorMyred, System.Drawing.Color.White, colorMyback, 2, true, true, true); break; case 4: spc = spectrum.CreateSpectrumBean(activeStreamHandle, width, height, colorMyred, System.Drawing.Color.White, colorMyback, 1, true, true, true); break; case 5: spc = spectrum.CreateSpectrumDot(activeStreamHandle, width, height, colorMyred, System.Drawing.Color.White, colorMyback, 2, 1, true, true, true); break; case 6: spc = spectrum.CreateSpectrumEllipse(activeStreamHandle, width, height, colorMyred, System.Drawing.Color.White, colorMyback, 2, 1, true, true, true); break; } return(spc); }
public float GetPeakFrequency() { Un4seen.Bass.Misc.Visuals v = new Un4seen.Bass.Misc.Visuals(); float energy = 0.0f; v.DetectPeakFrequency(_CurrentStream, out energy); return(energy); }
public Player() { register(); visuals = new Un4seen.Bass.Misc.Visuals(); }