Converts from mono to stereo, allowing freedom to route all, some, or none of the incoming signal to left or right channels.
More...
|
float | LeftVolume [get, set] |
| 1.0 to copy the mono stream to the left channel without adjusting volume
|
|
float | RightVolume [get, set] |
| 1.0 to copy the mono stream to the right channel without adjusting volume
|
|
WaveFormat | WaveFormat [get] |
| Output Wave Format.
|
|
Converts from mono to stereo, allowing freedom to route all, some, or none of the incoming signal to left or right channels.
◆ MonoToStereoProvider16()
NAudio.Wave.MonoToStereoProvider16.MonoToStereoProvider16 |
( |
IWaveProvider | sourceProvider | ) |
|
|
inline |
Creates a new stereo waveprovider based on a mono input.
- Parameters
-
sourceProvider | Mono 16 bit PCM input |
◆ Read()
int NAudio.Wave.MonoToStereoProvider16.Read |
( |
byte[] | buffer, |
|
|
int | offset, |
|
|
int | count ) |
|
inline |
Reads audio data from the source buffer and processes it to the destination buffer.
- Parameters
-
buffer | The destination buffer to write the processed audio data to. |
offset | The offset in the destination buffer to start writing the data. |
count | The number of bytes to read from the source buffer and process. |
- Returns
- The number of bytes written to the destination buffer after processing the audio data.
This method reads audio data from the source buffer, processes it by applying left and right volume adjustments, and writes the processed data to the destination buffer. It ensures that the source buffer has enough space to accommodate the required number of bytes, reads the source audio data, processes each sample by applying volume adjustments, and writes the processed data to the destination buffer. The method returns the total number of bytes written to the destination buffer after processing the audio data, which is calculated based on the number of samples read and the size of each sample.
Implements NAudio.Wave.IWaveProvider.
◆ sourceBuffer
byte [] NAudio.Wave.MonoToStereoProvider16.sourceBuffer |
|
private |
◆ sourceProvider
readonly IWaveProvider NAudio.Wave.MonoToStereoProvider16.sourceProvider |
|
private |
◆ LeftVolume
float NAudio.Wave.MonoToStereoProvider16.LeftVolume |
|
getset |
1.0 to copy the mono stream to the left channel without adjusting volume
◆ RightVolume
float NAudio.Wave.MonoToStereoProvider16.RightVolume |
|
getset |
1.0 to copy the mono stream to the right channel without adjusting volume
◆ WaveFormat
WaveFormat NAudio.Wave.MonoToStereoProvider16.WaveFormat |
|
get |
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/MonoToStereoProvider16.cs