Xeno-rat
Loading...
Searching...
No Matches
NAudio.Utils.BufferHelpers Class Reference

Helper methods for working with audio buffers. More...

Collaboration diagram for NAudio.Utils.BufferHelpers:

Static Public Member Functions

static byte[] Ensure (byte[] buffer, int bytesRequired)
 Ensures that the input buffer has at least the specified number of samples and returns the buffer.
 
static float[] Ensure (float[] buffer, int samplesRequired)
 Ensures the buffer is big enough.
 

Detailed Description

Helper methods for working with audio buffers.

Member Function Documentation

◆ Ensure() [1/2]

static byte[] NAudio.Utils.BufferHelpers.Ensure ( byte[] buffer,
int bytesRequired )
inlinestatic

Ensures that the input buffer has at least the specified number of samples and returns the buffer.

Parameters
bufferThe input buffer to be checked and potentially resized.
samplesRequiredThe number of samples required in the buffer.
Returns
The input buffer if it has at least the specified number of samples; otherwise, a new buffer with the specified number of samples.
Here is the caller graph for this function:

◆ Ensure() [2/2]

static float[] NAudio.Utils.BufferHelpers.Ensure ( float[] buffer,
int samplesRequired )
inlinestatic

Ensures the buffer is big enough.

Parameters
buffer
samplesRequired
Returns

The documentation for this class was generated from the following file: