I have already referenced NAudio library in my project how ever when i run my code it tells me something along the lines of “Expression denotes a type, where a method group was expected.
Here is my code and the error is at the line of waveFile = WaveFileReader("somefile.wav");
using System;
using Gst;
using GLib;
using Gst.BasePlugins;
using NAudio;
using NAudio.Wave;
namespace record_audio_simple_test
{
class MainClass
{
//Define class variables
private NAudio.Wave.WaveFileReader waveFile = null;
private NAudio.Wave.DirectSoundOut output = null;
public static void Main (string[] args)
{
waveFile = WaveFileReader("somefile.wav");
}
}
}
I am using MonoDevelop, Ubuntu Linux, and NAudio, my target hardware is an embedded linux box but first I need to make it work before I try to port it to the embedded box I’m using NAudio becuase I assume that it will be cross-compatible as long as their are supported codecs installed on the target system(Like Gstreamer or w/e).
Taking a look at your code are you sure its not soposed to look like this?:
Correct me if I am wrong. Hope I helped if i’m not wrong.