I first want to thank you for that nice toolbox.
Really nicely done !
I was playing with your record and replay methods and I noticed some problems when trying to record or replay longer files (duration). Indeed the size of the files becomes rapidly very large using all the ram of the computer and then yielding an OutOfMemoryException.
I do not have a brand new computer which limits the file size to about 1.5GO before yielding an exception. (only 4GO of ram).
I believe you should, form time to time, flush the buffer into the file when recording and and delete part of the array created when replaying data.
Thank you again !