Search code examples
naudio-framework

NAudio waveform plotting in VS 2013


I am using VS 2013 and getting an error when trying to deploy an WAV in my code.

The error is in this line:

open.Filter= "Wave File (".wav)|".wav;";

Solution

  • Two things I see in your code:

    • The string is not properly enclosed.
    • You probably want the * wildcard character instead of " (which solves the first isssue).

    So you probably want open.Filter = "Wave File (*.wav)|*.wav";.