AudioBuffer AudioBuffer AudioBuffer AudioBuffer AudioBuffer Class


Represents a buffer containing audio data.

public : sealed class AudioBuffer : IClosable, IMemoryBuffer
struct winrt::Windows::Media::AudioBuffer : IClosable, IMemoryBuffer
public sealed class AudioBuffer : IDisposable, IMemoryBuffer
Public NotInheritable Class AudioBuffer Implements IDisposable, IMemoryBuffer
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Get an instance of this class by calling AudioFrame.LockBuffer.


Capacity Capacity Capacity Capacity Capacity

Gets the maximum number of bytes that the buffer can hold.

Length Length Length Length Length

Gets or sets the number of bytes currently in use in the buffer.


Close() Close() Close() Close() Close()

Disposes of the object and associated resources.

CreateReference() CreateReference() CreateReference() CreateReference() CreateReference()

Returns an IMemoryBufferReference representation of the audio buffer.

Dispose() Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

See also