Assembly: Bass.Net (in Bass.Net.dll) Version: 18.104.22.168
public long Frame2Bytes( int frame )
Public Function Frame2Bytes ( frame As Integer ) As Long
public: long long Frame2Bytes( int frame )
member Frame2Bytes : frame : int -> int64
- Type: SystemInt32
The frame number which should be converted.
Return ValueType: Int64
The position (in bytes) or -1, if an error occured or the wave form has not been rendered yet.
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) this method would return the frame according to the rendering process, meaning the position would reflect a different value.
You might use the SyncPlayback(Int32) method to ensure, that the position will automatically be converted accordingly.