Quantcast
Channel: naudio Work Item Rss Feed
Viewing all articles
Browse latest Browse all 738

Commented Unassigned: WaveViewer and 24bit wavs [16438]

$
0
0
Maybe a stupid question but can the WaveViewer control display 24 bit wav files ?
I am doing this:

WaveViewer1.SamplesPerPixel = 400
Dim fr = New NAudio.Wave.WaveFileReader(filename)
WaveViewer1.WaveStream = fr

If filename is a file with 16bit depth (or lower), everything works fine. If the file is above 16bit, I think that the values becomes too big and verticaly the whole control is drawn.

Any help?
Comments: Thanks you again Mark. Just let me tell you (again) that I have managed to correct the WaveViewer and make it draw 24bit wavs. Perhaps it sounds easy for you, since you design these WaveViewers at will, but it wasn't easy for me !!! But I managed to understand how those 3 bytes contain the information... Anyway, it would be nice if you included sometime those other controls that you have made. Thank you again for everything. Your stuff have helped me a lot.

Viewing all articles
Browse latest Browse all 738

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>