Removes an existing marker from the WaveForm.
Namespace: Un4seen.Bass.Misc
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
Parameters
- name
- Type: SystemString
The name of the marker to remove.
Return Value
Type: Boolean, if the marker was removed successfully, else .
Remarks
Use the DrawMarker property to define if and how markers should be drawn within the WaveForm. The ColorMarker property will be used as the the drawing color.
In order to remove all markers use the ClearAllMarker method. If you need to add new markers or replace an existing marker use the AddMarker(String, Int64) method.
Before removing markers the Wave buffer must have been created. So make sure this method is only called after WaveFormLoadFromFile(String), RenderStartRecording(Int32, Int32, Int32) or RenderStart(Int32, Boolean).
To obtain a list of all markers you might use the marker dictionary member (Key=name, Value=position) of the Wave property.
Examples
private Un4seen.Bass.Misc.WaveForm WF = null; ... // render a wave form WF = new WaveForm(this._fileName, new WAVEFORMPROC(MyWaveFormCallback), this); WF.DrawMarker = WaveForm.MARKERDRAWTYPE.Line; WF.RenderStart( true, BASSFlag.BASS_SAMPLE_FLOAT ); // from here on we might add markers...just examples here... WF.AddMarker( "CueIn", Bass.BASS_ChannelSeconds2Bytes(_stream, 2.0) ); WF.AddMarker( "RampUp", Bass.BASS_ChannelSeconds2Bytes(_stream, 17.5)); WF.AddMarker( "Outro", Bass.BASS_ChannelSeconds2Bytes(_stream, 100.7)); WF.AddMarker( "Mix", Bass.BASS_ChannelSeconds2Bytes(_stream, 130.3)); WF.AddMarker( "End", Bass.BASS_ChannelSeconds2Bytes(_stream, 136.9)); ... // this will remove the 'CueIn' marker WF.RemoveMarker( "CueIn" );
See Also