private void GetWaveForm() { // unzoom...(display the whole wave form) _zoomStart = -1; _zoomStartBytes = -1; _zoomEnd = -1; _zoomed = false; // render a wave form _WF = new WaveForm(_currentTrack.Filename, new WAVEFORMPROC(MyWaveFormCallback), this); _WF.FrameResolution = 0.01f; // 10ms are nice _WF.CallbackFrequency = 30000; // every 5min. _WF.ColorBackground = Color.FromArgb(20, 20, 20); _WF.ColorLeft = Color.Gray; _WF.ColorLeftEnvelope = Color.LightGray; _WF.ColorRight = Color.Gray; _WF.ColorRightEnvelope = Color.LightGray; _WF.ColorMarker = Color.Gold; _WF.ColorBeat = Color.LightSkyBlue; _WF.ColorVolume = Color.White; _WF.DrawEnvelope = false; _WF.DrawWaveForm = WaveForm.WAVEFORMDRAWTYPE.HalfMono; _WF.DrawMarker = WaveForm.MARKERDRAWTYPE.Line | WaveForm.MARKERDRAWTYPE.Name | WaveForm.MARKERDRAWTYPE.NamePositionAlternate; _WF.MarkerLength = 0.75f; _WF.RenderStart(true, BASSFlag.BASS_DEFAULT); }
private void GetWaveForm() { // unzoom...(display the whole wave form) _zoomStart = -1; _zoomEnd = -1; // render a wave form WF2 = new WaveForm(this._fileName, new WAVEFORMPROC(MyWaveFormCallback), this.form); WF2.FrameResolution = 0.01f; // 10ms are nice WF2.CallbackFrequency = 2000; // every 30 seconds rendered (3000*10ms=30sec) WF2.DrawWaveForm = WaveForm.WAVEFORMDRAWTYPE.Stereo; WF2.DrawMarker = WaveForm.MARKERDRAWTYPE.Line | WaveForm.MARKERDRAWTYPE.Name | WaveForm.MARKERDRAWTYPE.NamePositionAlternate; WF2.MarkerLength = 0.75f; // our playing stream will be in 32-bit float! // but here we render with 16-bit (default) - just to demo the WF2.SyncPlayback method WF2.RenderStart(true, BASSFlag.BASS_DEFAULT); }
private void getWaveForm() { WF2 = new WaveForm(filename, new WAVEFORMPROC(myWaveFormCallback), this); WF2.FrameResolution = 0.01f; WF2.CallbackFrequency = 2000; WF2.ColorBackground = Color.WhiteSmoke; WF2.ColorLeft = Color.Gainsboro; WF2.ColorLeftEnvelope = Color.Gray; WF2.ColorRight = Color.LightGray; WF2.ColorRightEnvelope = Color.DimGray; WF2.ColorMarker = Color.DarkBlue; WF2.DrawWaveForm = WaveForm.WAVEFORMDRAWTYPE.Stereo; WF2.DrawMarker = WaveForm.MARKERDRAWTYPE.Line | WaveForm.MARKERDRAWTYPE.Name | WaveForm.MARKERDRAWTYPE.NamePositionAlternate; WF2.MarkerLength = 0.75f; WF2.RenderStart(true, BASSFlag.BASS_DEFAULT); }
private void GetWaveForm() { // unzoom...(display the whole wave form) _zoomStart = -1; _zoomStartBytes = -1; _zoomEnd = -1; _zoomed = false; // render a wave form _WF = new WaveForm(_currentTrack.Filename, new WAVEFORMPROC(MyWaveFormCallback), null); //_WF.NotifyHandler = new WAVEFORMPROC(MyWaveFormCallback); _WF.FrameResolution = 0.01f; // 10ms are nice _WF.CallbackFrequency = 30000; // every 5min. _WF.ColorBackground = System.Drawing.Color.FromArgb(255, 255, 255); _WF.ColorLeft = System.Drawing.Color.LightBlue; _WF.ColorLeftEnvelope = System.Drawing.Color.LightBlue; /*_WF.ColorRight = System.Drawing.Color.Gray; _WF.ColorRightEnvelope = System.Drawing.Color.LightGray;*/ _WF.ColorMarker = System.Drawing.Color.Gold; //_WF.ColorBeat = System.Drawing.Color.LightSkyBlue; _WF.ColorVolume = System.Drawing.Color.White; _WF.DrawWaveForm = WaveForm.WAVEFORMDRAWTYPE.Mono; _WF.DrawEnvelope = true; _WF.DrawMarker = WaveForm.MARKERDRAWTYPE.Line | WaveForm.MARKERDRAWTYPE.Name | WaveForm.MARKERDRAWTYPE.NamePositionAlternate; _WF.MarkerLength = 0.75f; _WF.RenderStart(true, BASSFlag.BASS_DEFAULT); }