I'm trying to capture audio using WASAPI. My code is largely based on the ChatterBox VoIP sample app. I'm getting audio buffers, but they are all silent (flagged AUDCLNT_BUFFERFLAGS_SILENT).
I'm using Visual Studio Express 2012 for Windows Phone. Running on the emulator.
I've had the same problem. It seems like you can either use only
AudioCategory_Other
or create an instance ofVoipPhoneCall
and use onlyAudioCategory_Communications
.So the solution in my case was to use
AudioCategory_Communications
and create an outgoingVoipPhoneCall
. You should implement the background agents as in Chatterbox VoIP sample app for theVoipCallCoordinator
to work .