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: Thank you for your replying Mark. Just let me tell you that I have already started to change the WaveViewer control in order to be able to draw 24 bit waves and I think I'm getting near. In any case, what is the equivalent control for WaveViewer in the demo apps ? Because in the demo I have only seen the WaveFormPainter which does not cover my need (I need to display the wave at once not while it plays). If I am missing something please correct me.
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: Thank you for your replying Mark. Just let me tell you that I have already started to change the WaveViewer control in order to be able to draw 24 bit waves and I think I'm getting near. In any case, what is the equivalent control for WaveViewer in the demo apps ? Because in the demo I have only seen the WaveFormPainter which does not cover my need (I need to display the wave at once not while it plays). If I am missing something please correct me.