Helper methods for working with audio buffers.
More...
|
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.
|
|
Helper methods for working with audio buffers.
◆ 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
-
buffer | The input buffer to be checked and potentially resized. |
samplesRequired | The 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.
◆ Ensure() [2/2]
static float[] NAudio.Utils.BufferHelpers.Ensure |
( |
float[] | buffer, |
|
|
int | samplesRequired ) |
|
inlinestatic |
Ensures the buffer is big enough.
- Parameters
-
- Returns
The documentation for this class was generated from the following file:
- /Users/sumansaurabh/Documents/my-startup/xeno-rat/Plugins/LiveMicrophone/lib/NAudio.Core/Utils/BufferHelpers.cs