Buffered WaveProvider taking source data from WaveIn.
More...
|
| WaveInProvider (IWaveIn waveIn) |
| Creates a new WaveInProvider n.b. Should make sure the WaveFormat is set correctly on IWaveIn before calling.
|
|
int | Read (byte[] buffer, int offset, int count) |
| Reads a sequence of bytes from the current BufferedWaveProvider and advances the position within the buffer by the number of bytes read.
|
|
Buffered WaveProvider taking source data from WaveIn.
◆ WaveInProvider()
NAudio.Wave.WaveInProvider.WaveInProvider |
( |
IWaveIn | waveIn | ) |
|
|
inline |
Creates a new WaveInProvider n.b. Should make sure the WaveFormat is set correctly on IWaveIn before calling.
- Parameters
-
waveIn | The source of wave data |
◆ OnDataAvailable()
void NAudio.Wave.WaveInProvider.OnDataAvailable |
( |
object | sender, |
|
|
WaveInEventArgs | e ) |
|
inlineprivate |
Adds the available data to the buffered wave provider.
- Parameters
-
sender | The object that raised the event. |
e | An object that contains the event data. |
This method adds the available data from the e to the bufferedWaveProvider .
◆ Read()
int NAudio.Wave.WaveInProvider.Read |
( |
byte[] | buffer, |
|
|
int | offset, |
|
|
int | count ) |
|
inline |
Reads a sequence of bytes from the current BufferedWaveProvider and advances the position within the buffer by the number of bytes read.
- Parameters
-
buffer | An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source. |
offset | The zero-based byte offset in buffer at which to begin storing the data read from the current source. |
count | The maximum number of bytes to read. |
- Returns
- The total number of bytes read into the buffer. This might be less than the number of bytes requested if that many bytes are not currently available, or zero if the end of the stream is reached.
Implements NAudio.Wave.IWaveProvider.
◆ bufferedWaveProvider
◆ waveIn
readonly IWaveIn NAudio.Wave.WaveInProvider.waveIn |
|
private |
◆ 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/WaveInProvider.cs