Class XAudioBuffer
The AudioBuffer class.
Inherited Members
Namespace: Evergine.XAudio2
Assembly: Evergine.XAudio2.dll
Syntax
public class XAudioBuffer : AudioBuffer, ILoadable, IDependencyObject
Constructors
XAudioBuffer()
Initializes a new instance of the XAudioBuffer class.
Declaration
public XAudioBuffer()
Properties
Capacity
Gets the buffer capacity.
Declaration
public int Capacity { get; }
Property Value
Type | Description |
---|---|
int |
Context
Gets the context of the audio buffer.
Declaration
public nint Context { get; }
Property Value
Type | Description |
---|---|
nint |
DataPtr
Gets the data pointer.
Declaration
public nint DataPtr { get; }
Property Value
Type | Description |
---|---|
nint |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public override void Dispose()
Overrides
InternalFill(Stream, int)
Fills the audio buffer with a specific stream.
Declaration
protected override void InternalFill(Stream stream, int bufferSize)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The source stream. |
int | bufferSize | The size of the buffer. |
Overrides
InternalFillAsync(Stream, int)
Fills the audio buffer with a specific stream.
Declaration
protected override Task InternalFillAsync(Stream stream, int bufferSize)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The source stream. |
int | bufferSize | The buffer size. |
Returns
Type | Description |
---|---|
Task | An awaitable task of the operation. |
Overrides
InternalFill<TBuffer>(TBuffer[], int, int)
Fills the audio buffer with a specified buffer.
Declaration
protected override void InternalFill<TBuffer>(TBuffer[] buffer, int offset, int count) where TBuffer : struct
Parameters
Type | Name | Description |
---|---|---|
TBuffer[] | buffer | The source buffer. |
int | offset | The source offset. |
int | count | The number of elements to copy. |
Type Parameters
Name | Description |
---|---|
TBuffer | The type of the buffer data. |
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |