Utility class to intercept audio from an IWaveProvider and save it to disk.
More...
|
| WaveRecorder (IWaveProvider source, string destination) |
| Constructs a new WaveRecorder.
|
|
int | Read (byte[] buffer, int offset, int count) |
| Reads a specified number of bytes from the source and writes them to the writer, returning the number of bytes read.
|
|
void | Dispose () |
| Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
Utility class to intercept audio from an IWaveProvider and save it to disk.
◆ WaveRecorder()
NAudio.Wave.WaveRecorder.WaveRecorder |
( |
IWaveProvider | source, |
|
|
string | destination ) |
|
inline |
Constructs a new WaveRecorder.
- Parameters
-
destination | The location to write the WAV file to |
source | The Source Wave Provider |
◆ Dispose()
void NAudio.Wave.WaveRecorder.Dispose |
( |
| ) |
|
|
inline |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
This method disposes the writer if it is not null and sets it to null.
◆ Read()
int NAudio.Wave.WaveRecorder.Read |
( |
byte[] | buffer, |
|
|
int | offset, |
|
|
int | count ) |
|
inline |
Reads a specified number of bytes from the source and writes them to the writer, returning the number of bytes read.
- Parameters
-
buffer | The buffer to read the bytes into. |
offset | The zero-based byte offset in buffer at which to begin storing the data read from the current stream. |
count | The maximum number of bytes to read. |
- Returns
- The total number of bytes read into the buffer.
This method reads a maximum of count bytes from the source into the buffer at the specified offset . It then writes the actual number of bytes read to the writer and returns this value.
Implements NAudio.Wave.IWaveProvider.
◆ source
◆ writer
◆ WaveFormat
The documentation for this class was generated from the following file:
- /Users/sumansaurabh/Documents/my-startup/xeno-rat/Plugins/LiveMicrophone/lib/NAudio.Core/Wave/WaveProviders/WaveRecorder.cs