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: I never use WaveViewer myself, I always write my own control that matches what my requirements are. Sometimes I want scrolling, sometimes I want zooming etc. So WaveViewer was only ever intended to be a simple example. I do have a couple of other WaveForm drawing control that I may make part of the NAudio demo apps at some point in the future.

Viewing all articles
Browse latest Browse all 738

Trending Articles



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