
iphone/ipad
文章平均质量分 69
printf1998
这个作者很懒,什么都没留下…
展开
-
读书时间 2010/06/26 - 1 Xcode
《iPhone3开发基础教程》 0. 杂想杂问Q: How to "jump" to a synbol's definition in XCode ???Q: @class干嘛的? A:仅仅是对类的超前引用。T:Alt/Option Kay + double click will display a keyword's document message, like de原创 2011-06-27 08:39:00 · 238 阅读 · 0 评论 -
iPhone/iPad开发札记 2012/03/10 音频:录音与混音
1. reading my code for recording * MyInputBufferHandler Q: 这里有Enqueue Buffer动作,这样,这个buffer有机会重新fill A: YES!. callback中总会有enqueue动作的,无论recording还是playback. Q: 参数含义voidAQRecorder原创 2012-03-10 10:42:17 · 1701 阅读 · 0 评论 -
iPhone/iPad开发札记2012/03/12 Audio Unit
1. MixerHost * AudioBufferList Declaration: struct AudioBufferList { UInt32 mNumberBuffers; AudioBuffer mBuffers[1];};Q:WHY AudioBuffer[1]? WHY NOT AudioBuffer *? seems the same原创 2012-03-12 07:43:44 · 1096 阅读 · 0 评论 -
iPhone/iPad开发札记 2012/03/29
1. 声音问题处理* 搞定混音从12:00 - 13:30,一直没有声音。其间,对bits-per-packet进行了调整,变成8*4=32,仍然没有声音。Q:是否音量开关为0了?Q:inBusNumber = 0 or 1 ???另,录音的声音有明显断续,估计和采集时使用的bit/sample与发送端要求的的不符有关,或者sendVideoData原创 2012-03-29 13:43:36 · 388 阅读 · 0 评论 -
iPhone/iPad开发札记 2012/03/15 总结与思考音频问题
1. brain storm * 昨晚做的server与client之间rudp实验 #Windows平台是否有同样的现象? #这个现象本身是否就说明network真的有问题?真地会影响声音?*关于昨天做的speex相关实验 #现象:在数据包进入speex之间抓包存盘,在Windows平台上播放基本是噪音;观察波形明显有丢失;通过speex播放,出现前几天遇见原创 2012-03-15 07:13:09 · 510 阅读 · 0 评论 -
iPhone/iPad开发札记 2012/03/13
1. 尝试G711* playback有时能通,通的时候声音质量很好,后台也没有错误出现。有时是杂音。另外,读audio data的时间似乎在变,大部分时候是10ms左右,有时只有1ms甚至0ms. *recording完全无声,但PC端能见到数据传过来,而且是连续的,完全不中断。(奇怪)Error: Error from Debugge原创 2012-03-13 17:34:36 · 392 阅读 · 0 评论 -
iPad/iPhone开发札记 2012/03/30
1. Audio Unit问题* 状态回顾完全无声:通过设置输入、输出音量 ,已经有声感觉:音调降低了,并且声音不饱满怀疑:取音频数据320B,未能填满buffer,造成声音断续及拉长。 AudioUnit OUTPUT sample rate不正确Q: 两个bus可以共用一个ASDB吗?* 最新状态在对output sampl原创 2012-03-30 16:38:12 · 345 阅读 · 0 评论 -
iPhone/iPad开发札记 2012/03/31
1. 解决真机声音采集相关问题* 目前状态:在真机中无法同时使用播放与采集,只能使用播放功能。调试发现,在真机中,采集的call back没有被执行!Q:是否和Audio Session的Recording&Playback设置有关? A:YES。在Audio Unit的setup程序中,设置了Audio Category = Playback,改设为Record原创 2012-03-31 09:12:09 · 509 阅读 · 0 评论 -
iPhone/iPad开发札记2012/03/14 Audio Unit into conference project
1. Audio Unit into conference project. * compile error Expected ')' before '&' token in file ConferenceInterface.h /** *加会方法 * param:加会的配置参数,和ini中的值一致 */ int原创 2012-03-14 12:51:35 · 541 阅读 · 0 评论 -
iPhone梦想 2011/12/18
1. 斯坦福大学iphone/ipad公开课http://v.163.com/special/opencourse/iphonekaifa.html网站地址:cs193p.stanford.edu原创 2011-12-18 10:21:41 · 235 阅读 · 0 评论 -
iPhone/iPad声音问题
1。现状* 已经使用40ms的audio buffer*回调不是40ms调用一次,而是大约20ms * audio buffer的时长增大1倍或缩小1倍,回调间隔总是20msWHY ???网上信息:http://www.cocoachina.com/bbs/read.php?tid=97903&page=1原创 2012-04-25 16:27:44 · 397 阅读 · 0 评论 -
iPhone/iPad 2012/05/12 搞定Audio Unit
1. 总结一下I/O Unit有两个element(bus),每一个都有input及output两个scopeinput element的input scope,直接与mic hardware相连,不用配置output element的output scope,直接与speaker hardware相连,不用配置在我的应用中,只需要配置output element的input sc原创 2012-05-12 09:52:55 · 1860 阅读 · 0 评论 -
iphone/iPad 搞定Audio Unit 2012/05/13
1. 研究MixherHost * render callback呼叫duration = 11 ms 2012-05-13 09:27:32.884 MixerHost[1576:7c03] into render callback: bus no = 02012-05-13 09:27:32.884 MixerHost[1576:7c03] into render callba原创 2012-05-13 09:31:03 · 3937 阅读 · 2 评论 -
iPhone/iPad 2012/05/14 take care of Audio Unit
1. something could be done: * check volume code. * double check stream format * try moving buf code outside of render callback* double check sample rate code * double check audio s原创 2012-05-14 09:09:06 · 1008 阅读 · 0 评论 -
iPhone/iPad搞定Audio Unit声音 2012/05/15
1. 处理样本大小由160变成186的问题搞定!(12:30)#includeusingnamespace std; class AudioBufferHandler {public: AudioBufferHandler(int intpuSize,int outputSize); void putAudioDa原创 2012-05-15 12:30:23 · 830 阅读 · 0 评论 -
UC故事与iPhone/iPad Audio Unit 2012/05/16
1. 故障与诊断客户端无法入会 从日志上看,tcp握手成功,随后又被关闭了。一般都是通讯设备把连接reset掉了,让电信商自查防火墙之类的设置,是否发现了我们的通讯协议里有违禁的特征字。然后把连接断掉了。 让电信用户确认一下,本地是否使用了TP-Link等家用/SOHO之类的宽带路由器,支持多台PC共享上网。如果是这个情况,建议尝试暂不使用路由器,让一台PC机和ADSL原创 2012-05-16 09:08:31 · 460 阅读 · 0 评论 -
UC故事+iPhone/iPad Audio Unit 2012/05/17
1. Audio Unit换VOIP Audio Unit,完全无声,不知什么原因。Q:render callback没有被执行? 2.原创 2012-05-17 08:33:59 · 524 阅读 · 0 评论 -
iPhone/iPad Audio Unit 2012/05/19
1. 使用Audio Unit采集声音 (耗时2:30小时)* 似乎不推荐There are two other main design patterns for audio units hosting. To record or analyze audio, create an input-only app with a render callback function. The cal原创 2012-05-19 12:52:07 · 2067 阅读 · 1 评论 -
iPhone/iPad札记2012/03/11 - 1 音频,混音
1. conference音频问题总结* 音频双向都通过,但不稳定,时好时坏(录音只成功过一次,播放曾有过连续工作20-30分钟一切正常的记录,但重启系统后就出现问题) Q Action: to see how often the callback would be called ? A: playing: 10 ms, recording 3ms *原创 2012-03-11 10:06:52 · 1339 阅读 · 0 评论 -
iPhone/iPad开发札记 2012/03/08 音频
1. MixerHost * setupAudioSession 这个方法可以 commented out !Q: Why 不影响使用playing过程 ?比如sample rate/catetory之类?* understanding ASBD /*! @struct AudioStreamBasicDescription原创 2012-03-08 10:26:02 · 1260 阅读 · 0 评论 -
iPhone/iPad开发扎记 2012/02/18
1. 几个问题:Q:从Session拿到的音频数据的格式?codec? A:通过一个C语言库方法readAudioData(...) 2012/03/12Q:Session如何提供多路音频的? A: readAudioData(...)中有参数可以选择Q:captured audio data如何传给Session? A:通过C库s原创 2012-02-18 10:36:24 · 1508 阅读 · 0 评论 -
读书时间 2011/12/24 iPhone/iPad
《iPhone 3开发基础教程》Chap 4 更丰富的界面总结:* 让数字键盘消失将view的class从UIViewy变成UIControl(UIView的sub class),而后者有event能力,在viewcontroller定义新的action, OK * UIActionSheet使用delegate来对动作进行响应。* UIAlertView也原创 2011-12-24 17:52:11 · 246 阅读 · 0 评论 -
读书时间 2011/12/23 iPhone/iPad
《iPhone 3开发基础》chap 3 处理基本交互1. Button Fun示例 总结* Outlet实义在controller中的UIKit实例,通常用于在代码中访问*.xib中定义的UI元素是从controller输出,故outlet通过^mouse配置的* ActionController中定义的响应*.xib中界面元素event handle原创 2011-12-23 21:21:53 · 244 阅读 · 0 评论 -
玩转iPodTouch
主要任务:* iPodTouch内容与MBP同步* 使用iPodTouch调试程序1. 调试程序Error:接入iPodTouch后,以前的程序无法执行了。Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in原创 2012-02-04 19:47:43 · 302 阅读 · 0 评论 -
读书时间 2012/01/03 iPhone/iPad
《iPhone 3基础教程》chap 9 http://Q:为什么没有任何东西睛显示? A:新版本的程序使用了不同的application life cycle methods- (void) applicationDidFinishLaunching:(UIApplication *)application {[windowaddSubvi原创 2012-01-03 10:06:26 · 574 阅读 · 0 评论 -
iPhone/iPad开发扎记 2012/02/11 - 玩转iOS Audio Service
### 主要任务:玩转xcode document中所有audio samples ### 1. sysSound Q: Why uses iPad by default ?Q: what's the reason for the following statement ? // Store the URL as a CFURLRef instance原创 2012-02-11 07:49:51 · 527 阅读 · 0 评论 -
iPhone/iPad开发札记 2012/02/22
1. clean *.pcm playing program todo: 播放结束后,自动变成 play. Q: AQPlayer::IsRunningProc(): where to use it ?* 跟踪SpeakHere,发现以下调用:#0 0x0000b7e1 in AQPlayer::isRunningProc at AQPlayer.mm:94#1原创 2012-02-22 09:34:23 · 535 阅读 · 0 评论 -
iPhone/iPad开发札记 2012/02/23
1. My own SpeakHere * 目前主要问题play后无法检测到结束play的时候,声音感觉被截断:其实是录音声音被截断播放的时候有回声Q:数据类型相关?Byte/char ? UInt32/long ?Q: anything to do with different buffer size for recording/playing ?*原创 2012-02-23 08:04:45 · 341 阅读 · 0 评论 -
iPhone/iPad开发札记 2012/02/24
1. My Own SpeakHere project * 遗留问题录制时崩溃播放停止时的通知* 问题解决:播放停止时的通知需要在初始化audio queue的时候注册property change处理程序InitNewPlaybackQueue()// set a property listner for running statusXThro原创 2012-02-24 08:50:42 · 484 阅读 · 0 评论 -
iPhone/iPad开发扎记2012/02/19
### To play *.pcm file from Jiarong 1. play system sound * 9:50 am. can play system sound now. ( 1:30 hours ) Summary: # must have a "-" for methods# adding a resources file ( tap.cif )原创 2012-02-19 09:47:14 · 894 阅读 · 0 评论 -
iPhone/iPad开发札记 2012/02/27
1. Reading: Camera Programming Topics for iOS * 2 says to handle picture / movie capturing UIImagePickerController - simple but limited AV Foundation ( AVAsset ?) - powerful and fully customize原创 2012-02-27 08:49:07 · 349 阅读 · 0 评论 -
iPhone/iPad开发扎记2012/02/20
在执行以下语句的时候,出现错误:int result =readAudioDataPackets(THIS->GetCurrentPacket(), &numBytes, inCompleteAQBuffer->mAudioData);GDB: Program received signal: "EXC_BAD_ACCESS". Q: BUFFER 似乎没有分配原创 2012-02-20 22:38:44 · 735 阅读 · 0 评论 -
iPhone/iPad开发札记2012/03/05
1. conference编译错误,如下:*min/max macro related. /Developer325/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/usr/include/c++/4.2.1/bits/locale_facets.tcc:610:34: error原创 2012-03-05 08:46:24 · 900 阅读 · 0 评论 -
iPhone/iPad开发札记2012/03/06
## iOS混音问题##1. reading document: Audio Unit Hosting Guide for iOS https://developer.apple.com/library/ios/documentation/MusicAudio/Conceptual/AudioUnitHostingGuide_iOS/AudioUnitHostingGuideFor原创 2012-03-06 10:56:35 · 493 阅读 · 0 评论 -
iPhone/iPad开发札记 2012/03/07 混音
1. MixerHost: sample code * slider.tag - (IBAction) mixerInputGainChanged: (UISlider *) sender { UInt32 inputBus = sender.tag; [audioObjectsetMixerInput: (UInt32) inputBusgain: (原创 2012-03-07 09:23:18 · 399 阅读 · 0 评论 -
iPhone/iPad开发札记 2012/03/09 音频
1. 后续工作* 解决按hear钮按下后,event处理时间太长* 解决有时听不见声音的问题* 整理代码* 声音采集2. 听不见声音error in console: notification: Invalid mode encountered. The stream is corrupted.notification: More t原创 2012-03-09 10:08:02 · 2498 阅读 · 0 评论 -
iPhone/iPad开发札记2012/03/11 -2 Audio Unit
1. Reading "Audio Unit Hosting Guide for iOS" / "Audio Unit Processing Graph Service References" / - for managing the graph ( a collection of units )"Audio Component Services Reference" / - for原创 2012-03-11 12:09:55 · 2097 阅读 · 0 评论 -
UC故事 2012/04/26
1. client/server browsing Q: 以下为对应关系?session::CConference gcc::InfoSvrConf session::CConfSession gcc:InfoSvrSession Note: :CConfDetailInfo is used by both client and gcc ! * biz concep原创 2012-04-26 08:07:07 · 656 阅读 · 0 评论