Fresh SpeakHere example app has error when recording audio in Simulator/Xcode

前端 未结 2 1265
长情又很酷
长情又很酷 2021-01-15 06:36

I can\'t record audio using the SpeakHere example app from apple. When I run the app in Simulator from within Xcode, it starts up normally, but when I press the record butto

2条回答
  •  一整个雨季
    2021-01-15 07:13

    url = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, (CFStringRef)recordFile, kCFURLPOSIXPathStyle, false);
    

    The code above made my xcoce 4.6 compile and run in simulator, but it doesnot record my voice from my usb microphone, I test my microphone in the garash band application and sucessfully record and play my voice, and the dbmeter does not move at all, any way when I port it to the real device it work, it just can't record and play voice in my simulator.

提交回复
热议问题