Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To display both channels in WaveViewer in NAudio, you need to modify the WaveViewer control settings. Here is an example:

  1. Open your project in Visual Studio and navigate to the form containing the WaveViewer control.

  2. Select the WaveViewer control on the form.

  3. In the Properties window, locate the "WaveChannel" property and set it to "Both".

  4. Save your changes and run the application.

Now, when you load a stereo audio file into the WaveViewer control, it will display both channels at the same time. You can zoom in/out, pan left/right or change the color of the waveform with the built-in functions.