Ask Your Question
2

How can WaveViewer in NAudio be set to show both channels?

asked 2023-04-29 20:46:03 +0000

huitzilopochtli gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-04-29 21:05:02 +0000

qstack gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-04-29 20:46:03 +0000

Seen: 15 times

Last updated: Apr 29 '23