录制的音频在Mac应用程序中使用Apple Sample回显 [英] Audio recorded is echoing in mac app using Apple Sample

查看:108
本文介绍了录制的音频在Mac应用程序中使用Apple Sample回显的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我的Mac应用程式中使用Apple范例来实作音讯录音功能。

I need to implement audio recording feature in my mac app.i am using the Apple sample

http://developer.apple.com/library/mac/#samplecode/AudioDataOutputToAudioUnit/Listings/main_m.html 。一切工作正常。唯一的问题是所创建的音频文件在回放时播放。请帮助!后来检查,苹果示例也有同样的问题

http://developer.apple.com/library/mac/#samplecode/AudioDataOutputToAudioUnit/Listings/main_m.html. Everything is working fine .The only issue is that the audio file created is echoing while playing.Please help!Later I checked, Apple sample also has the same problem

推荐答案

我自己找到答案。只需要注释

Well I found the answer myself.Just need to comment

effectAudioUnitComponentDescription.componentSubType = kAudioUnitSubType_Delay;

从CaptureSessionController.m:

From CaptureSessionController.m:

这篇关于录制的音频在Mac应用程序中使用Apple Sample回显的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆