AudioBuffer
AudioBuffer
AudioBuffer
AudioBuffer
Class
Definition
Represents a buffer containing audio data.
public : sealed class AudioBuffer : IClosable, IMemoryBuffer, IAudioBufferpublic sealed class AudioBuffer : IDisposable, IMemoryBuffer, IAudioBufferPublic NotInheritable Class AudioBuffer Implements IDisposable, IMemoryBuffer, IAudioBuffer// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
Get an instance of this class by calling AudioFrame::LockBuffer.
Properties
Capacity Capacity Capacity Capacity
Gets the maximum number of bytes that the buffer can hold.
public : unsigned int Capacity { get; }public uint Capacity { get; }Public ReadOnly Property Capacity As uint// You can use this property in JavaScript.
- Value
- unsigned int uint uint uint
The maximum number of bytes that the buffer can hold.
Length Length Length Length
Gets or sets the number of bytes currently in use in the buffer.
public : unsigned int Length { get; set; }public uint Length { get; set; }Public ReadWrite Property Length As uint// You can use this property in JavaScript.
- Value
- unsigned int uint uint uint
The number of bytes currently in use in the buffer.
Methods
Close() Close() Close() Close()
Disposes of the object and associated resources.
public : void Close()This member is not implemented in C#This member is not implemented in VB.Net// You can use this method in JavaScript.
CreateReference() CreateReference() CreateReference() CreateReference()
Returns an IMemoryBufferReference representation of the audio buffer.
public : IMemoryBufferReference CreateReference()public IMemoryBufferReference CreateReference()Public Function CreateReference() As IMemoryBufferReference// You can use this method in JavaScript.
Returns
The IMemoryBufferReference representation of the audio buffer.