BASS.NET API for the Un4seen BASS Audio LibraryWaveFormSyncPlayback Method BASS.NET API for the Un4seen BASS Audio Library
Sets a playback channel to synchronize the wave form positions.

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

public bool SyncPlayback(
	int channel
)

Parameters

channel
Type: SystemInt32
The playback channel which should be used to synchronize the WaveForm position members.

Return Value

Type: Boolean
on success - else (e.g. channel is an invalid stream) will be returned.
Remarks

If you intend to use the wave form in parallel while already playing out a stream, it is recommended to specify the same flags as for your playing stream (see e.g. RenderStart(Int32, Boolean)). This is because BASS_ChannelGetLength(Int32, BASSMode), BASS_ChannelGetPosition(Int32, BASSMode), BASS_ChannelSetPosition(Int32, Int64, BASSMode), BASS_ChannelBytes2Seconds(Int32, Int64) etc. would return different values if you specified different resolutions for your playing stream and your rendering stream (eg. a stream with BASS_SAMPLE_FLOAT would return twice as much bytes as a stream created with the default 16-bit resolution).

If your playing stream and and the rendering process uses different flags, you might use this method, so that the members Position2Frames(Int64), Frame2Bytes(Int32), GetBytePositionFromX(Int32, Int32, Int32, Int32)AddMarker(String, Int64) and GetMarker(String) will return converted values according to your playing stream.

Note: The TempoFactor will be reset to 0% when calling this method!

See Also

Reference