locked
Calls to SetAudioEndpoint causing odd microphone behavior RRS feed

  • Question

  • I've been developing a VoIP App for Wp8 that is based on the Chatterbox Sample App. Things were going smoothly until I started working with changing audio endpoints. I posted this (http://social.msdn.microsoft.com/Forums/wpapps/en-US/30b14ab2-1985-4ab0-858b-459757d8b220/setaudioendpoint-to-speakerphone-causes-timing-problem-with-microphone-capture?forum=wpdcapp) a little while ago when I first encountered a timing problem introduced after switching endpoints. I saw the capture timer firing at odd times, which introduced a sort of clicking noise on the far end. I decided to reset and flush the devices ( Stop(), Reset(), Start() ) after switching the endpoint -- this seemed to get rid of the clicking problem.

    Now, however, there is a new problem. Occasionally (meaning every 20-30 switches) when switching the endpoint device, the sound on the far end gets "fuzzy" or distorted. Switching the endpoint again (and restarting the devices) seems to get rid of the problem, but I still don't know the root issue here. I've also noticed that when the far end audio is distorted, the near end playback is perfect, which lead me to believe that timing is not an issue.

    Have people encountered similar problems when switching audio endpoints, or could there be something else going on?

    Friday, December 6, 2013 12:35 AM

All replies

  • I've encountered this problem on the Chatterbox VoIP sample application as well.

    Running the unmodified sample application, compiled in VS2012 phone with the latest SDK, on an HTC PM23300 with the latest OS installed. Also tried on Nokia Lumia 920. Where is this problem coming from? Can anyone reproduce this problem?



    • Edited by Jim M B Friday, December 6, 2013 11:35 PM
    Friday, December 6, 2013 9:39 PM