Edytuj

Udostępnij za pośrednictwem


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

Definition

Callback used to write audio data into the audio stream.

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

Parameters

position
Int64

Position where the data should be stored.

requestCount
Int32

Number of bytes to write.

buffer
IntPtr

nativeint

Pointer to the buffer that contains the data to be written.

actualCount
Int32

Set this value to indicate the number of bytes actually written.

Returns

True on success, false on failure.

Remarks

This method is called by the AudioSource when it has encoded the data and it need to write it out.

Applies to