Enum SyncFlags
Sync types to be used with ChannelSetSync(Int32, SyncFlags, Int64, SyncProcedure, IntPtr) (param flag) and SyncProcedure (data flag).
Namespace: System.Dynamic.ExpandoObject
Assembly: ManagedBass.dll
Syntax
public enum SyncFlags : int
CDError
CD add-on: Sync when playback is stopped due to an error. For example, the drive door being opened. param : not used data : the position that was being read from the CD track at the time.
CDSpeed
CD add-on: Sync when the read speed is automatically changed due to the BassCd.AutoSpeedReduction setting. param : not used data : the new read speed.
Downloaded
Sync when downloading of an internet (or "buffered" User file) stream has ended. param : not used data : not used
End
Sync when a channel reaches the end. param : not used data : 1 = the sync is triggered by a backward jump in a MOD music, otherwise not used
Free
Sync when a channel is freed. param : not used data : not used
HlsSegement
Sync when a new segment begins downloading. Mixtime only. param: not used. data: not used.
MetadataReceived
Sync when metadata is received in a stream. param : not used data : not used - the updated metadata is available from ChannelGetTags(Int32, TagType)
MidiCue
MIDI add-on: Sync when a cue is encountered.
param : not used
data : the marker index, which can be used in a
MidiEvent
MIDI add-on: Sync when a Type of event is processed, in either a MIDI file or
MidiKeySignature
MIDI add-on: Sync when a key signature event is processed.
param : event Type.
data : The key signature events are given (by
MidiLyric
MIDI add-on: Sync when a lyric event is encountered.
param : not used
data : the marker index, which can be used in a
MidiMarker
MIDI add-on: Sync when a marker is encountered.
param : not used
data : the marker index, which can be used in a
MidiText
MIDI add-on: Sync when a text event is encountered.
param : not used
data : the marker index, which can be used in a
MidiTick
MIDI add-on: Sync when reaching a tick position. param : tick position. data : not used
MidiTimeSignature
MIDI add-on: Sync when a time signature event is processed.
param : event Type.
data : The time signature events are given (by
MixerEnvelope
MIX add-on: Sync when an envelope reaches the end. param : not used data : envelope Type
MixerEnvelopeNode
MIX add-on: Sync when an envelope node is reached. param : Optional limit the sync to a certain envelope Type (one of the BASSMIXEnvelope values). data : Will contain the envelope Type in the LOWORD and the current node number in the HIWORD.
Mixtime
FLAG: sync at mixtime, else at playtime
MusicFx
Sync when the "sync" effect (XM/MTM/MOD: E8x/Wxx, IT/S3M: S2x) is used. param : 0:data=Position, 1:data="x" value data : param=0: LOWORD=order HIWORD=row, param=1: "x" value
MusicInstrument
Sync when an instrument (sample for the non-instrument based formats) is played in a MOD music (not including retrigs). param : LOWORD=instrument (1=first) HIWORD=note (0=c0...119=b9, -1=all) data : LOWORD=note HIWORD=volume (0-64)
MusicPosition
Sync when a MOD music reaches an order:row position. param : LOWORD=order (0=first, -1=all) HIWORD=row (0=first, -1=all) data : LOWORD=order HIWORD=row
OggChange
Sync when a new logical bitstream begins in a chained OGG stream. Updated tags are available from ChannelGetTags(Int32, TagType). param : not used data : not used
Onetime
FLAG: sync only once, else continuously
Position
Sync when a channel reaches a position. param : position in bytes data : not used
Seeking
Sync when seeking (inc. looping and restarting). So it could be used to reset DSP/etc. param : position in bytes data : 0=playback is unbroken, 1=if is it broken (eg. Buffer flushed). The latter would be the time to reset DSP/etc.
Slided
Sync when an attribute slide is completed. param : not used data : the Type of slide completed (one of the ChannelAttribute values)
Stalled
Sync when playback has stalled. param : not used data : 0=stalled, 1=resumed
Stop
Sync when the DirectSound Buffer fails during playback, eg. when the device is no longer available. param : not used data : not used
WinampBitRate
WINAMP add-on: Sync when bitrate is changed or retrieved from a winamp Input plug-in. param : not used data : the bitrate retrieved from the winamp Input plug-in - called when it is retrieved or changed (VBR MP3s, OGGs, etc).
WmaChange
WMA add-on: Sync on a track change in a server-side playlist. Updated tags are available via ChannelGetTags(Int32, TagType). param : not used data : not used
WmaMeta
WMA add-on: Sync on a mid-stream tag change in a server-side playlist. Updated tags are available via ChannelGetTags(Int32, TagType). param : not used data : not used - the updated metadata is available from ChannelGetTags(Int32, TagType).