Custom buffer for the NAudioPlayer. More...


Public Member Functions | |
| NAudioBufferedProvider (WaveFormat format) | |
| void | AddSamples (float[] samples) |
| Allows external pipeline to add processed samples in queue for playback. | |
| int | Read (float[] buffer, int offset, int count) |
| Gets data from the internal buffer based on the contract provided by NAudio. | |
| void | CompleteAdding () |
Properties | |
| WaveFormat | WaveFormat [get] |
| Format of the audio stream. | |
Private Attributes | |
| BlockingCollection< float > | _sampleBuffer = new(128) |
| Internal buffer which stores samples ready to be played by NAudioPlayer. | |
Custom buffer for the NAudioPlayer.
Used to avoid conversion from float samples to bytes
|
inline |
|
inline |
Allows external pipeline to add processed samples in queue for playback.
| samples |

| void FQLab.NAudioBufferedProvider.CompleteAdding | ( | ) |

|
inline |
Gets data from the internal buffer based on the contract provided by NAudio.
| buffer | |
| offset | |
| count |
|
private |
Internal buffer which stores samples ready to be played by NAudioPlayer.
|
get |
Format of the audio stream.