Updating Buffer During Playback #1105
-
How to implement playback that takes audio data from a circular buffer (CircleBuffer) and periodically updates or expands it during playback?
The playback is operational; however, I am uncertain about how to append the next chunk. Considering there is a length limit for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You can set the |
Beta Was this translation helpful? Give feedback.
You can set the
BufferDuration
property on aBufferedWaveProvider
before reading from it. The default is 5 seconds, but you could make it longer. There is also aClearBuffer
method you can use to clear it. There is also aDiscardOnBufferOverflow
you can set to true if you don't want buffer full exceptions