3

I'm developing an app on WP8 use native audio. I use wasapi to capture and render client. I initialized default device and I run GetService method to get IAudioCaptureClient. Then, I also set capture event handler. And in capture thread, I got event handler. I run GetBuffer method of IAudioCaptureClient. GetBuffer method returns 480 frames captured and also return a data buffer. But, data buffer only contains zero?? Please help me!

Huy Du
  • 33
  • 3

1 Answers1

0

If you run your project on windows phone emulator you should enable device microphone in WMAppManifest.xml - capabilities tab. Also you should release and close all the related objects and resources after finishing capture.Otherwise next time you'll receive empty buffer.

Also take a look at this: Captured audio buffers are all silent on Windows Phone 8

Community
  • 1
  • 1
harsini
  • 326
  • 2
  • 14