Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: BadDeviceId calling waveInOpen when running NAudioTutorial5

$
0
0

My platform is Windows 7 Professional 64-bit

I got the following errors when running NAudioTutorial5:

NAudio.MmException was unhandled
  Message=BadDeviceId calling waveInOpen
  Source=NAudio
  StackTrace:
       at NAudio.MmException.Try(MmResult result, String function) in D:\naudio\NAudio\Wave\MmeInterop\MmException.cs:line 39
       at NAudio.Wave.WaveIn..ctor(Int32 deviceNumber, Int32 sampleRate, Int32 bitDepth, Int32 channels, Boolean callbackWindow) in D:\naudio\NAudio\Wave\MmeInterop\WaveIn.cs:line 64
       at NAudio.Wave.WaveIn..ctor(Int32 sampleRate, Int32 channels) in D:\naudio\NAudio\Wave\MmeInterop\WaveIn.cs:line 40
       at NAudioTutorial5.NAudioTutorial5.cmbRecord_Click(Object sender, EventArgs e) in C:\Users\jwoo\Documents\Visual Studio 2010\Projects\NAudioTutorial5\NAudioTutorial5\NAudioTutorial5.cs:line 102
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at NAudioTutorial5.Program.Main() in C:\Users\jwoo\Documents\Visual Studio 2010\Projects\NAudioTutorial5\NAudioTutorial5\Program.cs:line 17
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:


Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>