Assembly: Bass.Net (in Bass.Net.dll) Version: 126.96.36.199
public bool AddVolumePoint( long position, float level )
Public Function AddVolumePoint ( position As Long, level As Single ) As Boolean
public: bool AddVolumePoint( long long position, float level )
member AddVolumePoint : position : int64 * level : float32 -> bool
- Type: SystemInt64
The position (in bytes) of the volume point (e.g. as returned by BASS_ChannelGetPosition(Int32, BASSMode)).
- Type: SystemSingle
The volume level of the point to add or replace (0=silent, 1.0=maximum=0dB).
Return ValueType: Boolean
, if the volume point was added or replaced successfully, else .
Before adding a volume point 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).
If your rendering method and your playback stream used different flags during creation (e.g. rendering was done using the BASS_DEFAULT flag whereas your playback stream uses BASS_SAMPLE_FLOAT) adding volume points might result in a different position, meaning the position would reflect a different value during playback. In such case call the SyncPlayback(Int32) method to ensure, that the position will be converted accordingly.
Note: The byte position will be converted to the original rendering resolution according the SyncPlayback(Int32). So if your playback stream has a different resolution never add volume points without first calling SyncPlayback(Int32).