Bewerken

Delen via


AudioSource.Read(Int64, Int32, IntPtr, Int32) Method

Definition

Callback invoked to read encoded audio data.

public abstract bool Read (long position, int requestCount, IntPtr buffer, out int actualCount);
override this.Read : int64 * int * nativeint *  -> bool

Parameters

position
Int64

Position in the audio stream that the data should be read from.

requestCount
Int32

Number of bytes to read.

buffer
IntPtr

nativeint

Pointer to the buffer where the data should be stored.

actualCount
Int32

On return, set this value to the number of bytes actually read.

Returns

true on success, false on failure.

Remarks

This method is called by the AudioSource when more data is requested.

Applies to