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.
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.