Provide WaveProvider that can apply effects in real time using DMO.
If the audio thread is running on the STA thread, please generate and operate from the same thread. If the audio thread is running on the MTA thread, please operate on any MTA thread.
- Template Parameters
-
TDmoEffector | Types of DMO effectors to use |
TEffectorParam | Parameters of the effect to be used |
- Type Constraints
-
TDmoEffector | : | IDmoEffector<TEffectorParam> | |
TDmoEffector | : | new() | |
Reads data from the input buffer and processes it using the specified effector, if available.
- Parameters
-
buffer | The input buffer to read data from. |
offset | The zero-based byte offset in buffer at which to begin reading. |
count | The maximum number of bytes to read. |
- Returns
- The total number of bytes read into the buffer.
This method reads data from the input buffer using the input provider and processes it using the specified effector, if available. If no effector is provided, the method simply reads the data and returns the total number of bytes read. If an effector is provided, the method processes the read data and returns the total number of bytes read after processing.
Implements NAudio.Wave.IWaveProvider.