Is there a way, either within the Framework or by using P/Invoke to determine the duration of a wav file that's held in a MemoryStream?
I've already had a look at Managed DirectX and another similar question, but everything seems to work with paths, rather than providing any way to pass in a stream. One of the links in the question I've referenced (A simple C# Wave editor....) makes it fairly clear that I could parse the MemoryStream
to determine the duration of the wav file. Ideally I'd like to not re-invent the wheel.