You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some providers always provide the full amount of audio requested in Read, regardless of whether the source stream has reached the end or not. In that case the audio will play forever and you need an alternative mechanism to detect that you have reached the end of the file.
I wish a solution was provided here. x_x ... i figured out that varispeed was causing "MemoryAllocationError calling waveOutWrite" when spammed because it is always playing.
edit: instead of checking playbackstate for stopped you can get the TotalTime.TotalMilliseconds of the wavefilereader or whatever you are passing into the varispeedSampleProvider. You can then sleep until that time has passed then dispose of everything.
(if you slow down the audio by .5 it would take twice as long to complete so you would have to multiply the time you sleep by 2.)
When using VarispeedSample Providerd, PlaybackState is always playing , It doesn't change when MP3 playback ends..
thanks for viewing
The text was updated successfully, but these errors were encountered: