windows phone 7 - Microphone not working when a call occures -
i m trying record voice using microphone api in wp7/wp8. every thing working fine when use record normal voice, when use when call answered application running well. when playback recorded voice whole recording empty, there no sound @ all.
what happened microphone in case?
here code m using
microphone.bufferduration = timespan.frommilliseconds(100); microphone.start(); void micro_bufferready(object sender, eventargs e) { audiobuffer = new byte[microphone.getsamplesizeinbytes(microphone.bufferduration)]; microphone.getdata(audiobuffer); currentrecordingstream.write(audiobuffer, 0, audiobuffer.length); }
you can't record call microphone in app. when call activated, call app on phone take control of microphone , sound directed it, not application.
Comments
Post a Comment