- Home /
Microphone Stop Recording When FullScreenMovie Play
Hi, I'm working on a project making a karaoke game for Android. Basically, the game need to play a video (animation and song) and record sound of the player singing while the video playing. The game then calculating the pitch or amplitude of the recorded sound and give the score.
Until now, I can playing the video and record sound separately. Here is my code.
For playing video.
private IEnumerator PlayVideo(){
Handheld.PlayFullScreenMovie ("Sample.mp4", Color.black, FullScreenMovieControlMode.Hidden);
yield return new WaitForEndOfFrame();
yield return new WaitForEndOfFrame();
PlayRecordedSound();
}
and for recording.
audioClip = Microphone.Start (null, false, 283, 44100);
Both of the code work just fine. But when I try to call StartCoroutine(PlayVideo());
after Microphone.Start
, the video running but I don't know is the recording running or not. I check it by playing the recorded sound after the video finish but no sound is playing just silent. My question is can I recording while the FullScreenMovie playing? Is my game functionality update function still working when the Video Playing?
Sorry for my bad english. I'm new to this Answer and Question forum so maybe my question is messy.