Share via


AudioFrameInputNode.AddFrame(AudioFrame) Method

Definition

Adds an audio frame to the audio frame input node.

public:
 virtual void AddFrame(AudioFrame ^ frame) = AddFrame;
void AddFrame(AudioFrame const& frame);
public void AddFrame(AudioFrame frame);
function addFrame(frame)
Public Sub AddFrame (frame As AudioFrame)

Parameters

frame
AudioFrame

An AudioFrame object representing the frame.

Remarks

The provided AudioFrame object must have an underlying AudioBuffer with a Length greater than 0 or an E_INVALIDARG error will result. Also, the underlying IMemoryBuffer containing the raw audio data must be block-aligned based on the bit depth per sample and number of channels. This means that the size of the buffer, in bytes, must be an integral multiple of (BitsPerSample / 8) * ChannelCount of the EncodingProperties property for the node. Attempting to add a frame with a non-aligned audio buffer will result in an E_INVALIDARG error.

A maximum of 64 frames can be queued in the AudioFrameInputNode at one time. Attempting to queue more than 64 frames will result in an error.

Applies to