开发者

iPhone Playing a sound clip while recording a video using UIImagePickerController ... possible?

I'm using openAL to pla开发者_JAVA技巧y sounds. I have a view controller that lets users upload a video. I want to give them a 1 minute warning sound so that they know to wrap things up. I tried using a call to SoundEngine_StartEffect(warningSound); but it just doesn't play anything. Is there a work around to this?


Did you try to set mix with others?

    UInt32 doSetProperty = 1; 
    AudioSessionSetProperty(kAudioSessionProperty_OverrideCategoryMixWithOthers, sizeof(UInt32), &doSetProperty);

It is in most cases a "must have", when trying to record and play at the same time.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜