BASS.NET API for the Un4seen BASS Audio LibraryWaveFormRemoveMarker Method BASS.NET API for the Un4seen BASS Audio Library
Removes an existing marker from the WaveForm.

Namespace: Un4seen.Bass.Misc
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

public bool RemoveMarker(
	string name
)

Parameters

name
Type: SystemString
The name of the marker to remove.

Return Value

Type: Boolean
, if the marker was removed successfully, else .
Remarks

Markers might be used to highlight certain positions within a WaveForm, e.g. Cue-, Ramp-, Fade- or Mix-Points.

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

VB
Private WF As Un4seen.Bass.Misc.WaveForm = Nothing
...
' render a wave form
WF = New WaveForm(Me._fileName, New WAVEFORMPROC(MyWaveFormCallback), Me)
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")
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

Reference