Assembly: Bass.Net (in Bass.Net.dll) Version: 188.8.131.52
[DllImportAttribute("bass.dll", CharSet = CharSet.Unicode)] public static int BASS_StreamPutFileData( int handle, byte buffer, int length )
<DllImportAttribute("bass.dll", CharSet := CharSet.Unicode>] Public Shared Function BASS_StreamPutFileData ( handle As Integer, buffer As Byte(), length As Integer ) As Integer
public: [DllImportAttribute(L"bass.dll", CharSet = CharSet::Unicode)] static int BASS_StreamPutFileData( int handle, array<unsigned char>^ buffer, int length )
[<DllImportAttribute("bass.dll", CharSet = CharSet.Unicode)>] static member BASS_StreamPutFileData : handle : int * buffer : byte * length : int -> int
- Type: SystemInt32
The stream handle (as created with BASS_StreamCreateFileUser(BASSStreamSystem, BASSFlag, BASS_FILEPROCS, IntPtr) and the STREAMFILE_BUFFERPUSH system flag.).
- Type: SystemByte
The array of byte values to provide to the file data.
- Type: SystemInt32
The amount of data in bytes, or BASS_STREAMPROC_END to end the file.
Return ValueType: Int32
If successful, the number of bytes read from buffer is returned, else -1 is returned. Use BASS_ErrorGetCode to get the error code.
If there is not enough space in the stream's file buffer to receive all of the data, then only the amount that will fit is read from buffer. BASS_StreamGetFilePosition(Int32, BASSStreamFilePosition) can be used to check the amount of space in the buffer.
File data should be provided at a rate sufficent to sustain playback. If there is insufficient file data, and the playback buffer is subsequently exhausted, BASS will automatically stall playback of the stream, until more data is available. A BASS_SYNC_STALL sync can be set via BASS_ChannelSetSync(Int32, BASSSync, Int64, SYNCPROC, IntPtr), to be triggered upon playback stalling or resuming.
|BASS_ERROR_HANDLE||handle is not valid.|
|BASS_ERROR_NOTAVAIL||The stream is not using the STREAMFILE_BUFFERPUSH file system.|
|BASS_ERROR_ENDED||The stream has ended.|