开发者

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

开发者 https://www.devze.com 2023-02-08 11:06 出处:网络
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 usin

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

精彩评论

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