我在 Windows Phone 8 应用程序中有以下代码:
FrameworkDispatcher.Update();
microphone = Microphone.Default;
microphone.BufferReady += Device_BufferReady;
bStarted = true;
tbData.Text = "00:00:00";
m_lDuration = 0;
microphone.BufferDuration = TimeSpan.FromMilliseconds(100);
baBuffer = new byte[microphone.GetSampleSizeInBytes(microphone.BufferDuration)];
microphone.Start();
但是 Device_BufferReady 永远不会被击中!知道我做错了什么吗?