Low recording volume in combination with AVAudioSessionCategoryPlayAndRecord

前端 未结 7 1767
我在风中等你
我在风中等你 2020-12-04 18:30

When I set:

[[AVAudioSession sharedInstance] setCategory:
    AVAudioSessionCategoryPlayAndRecord error:NULL];

…recording and playing works

7条回答
  •  眼角桃花
    2020-12-04 18:40

    Also,need to add AudioToolbox and AVFoundation frameworks to your project by Right-Cliking on Frameworks -> Add -> Existing Frameworks.

    Otherwise might get linker error:"_AudioSessionSetProperty", referenced from: -[OpenBook startRecording] in OpenBook.o

提交回复
热议问题