AudioFrame.LockBuffer(AudioBufferAccessMode) AudioFrame.LockBuffer(AudioBufferAccessMode) AudioFrame.LockBuffer(AudioBufferAccessMode) AudioFrame.LockBuffer(AudioBufferAccessMode) AudioFrame.LockBuffer(AudioBufferAccessMode) Method

Definition

Gets a AudioBuffer object that allows you to operate directly on the frame's audio data.

public : AudioBuffer LockBuffer(AudioBufferAccessMode mode)
AudioBuffer LockBuffer(AudioBufferAccessMode mode) const;
public AudioBuffer LockBuffer(AudioBufferAccessMode mode)
Public Function LockBuffer(mode As AudioBufferAccessMode) As AudioBuffer
var audioBuffer = audioFrame.lockBuffer(mode);

Parameters

mode
AudioBufferAccessMode AudioBufferAccessMode AudioBufferAccessMode

A value indicating the access mode of the returned audio buffer.

Returns

The buffer containing audio sample data.