存档

‘转载’ 分类的存档

iOS 预定义声音参考表

2012年10月19日 没有评论

在上一个应用 MMHot 中,我们讲解了如何显示图片,后来我打算再添加一个功能,就是长按屏幕可以保存图片,保存图片后播放一个声音通知用户。声音的播放使用了 AudioServices。

AudioServices 是 Audio Toolbox 下的一个播放小于 30秒 声音的功能集合。从 ios 2.0 开始,在系统中欲定义了一些系统声音,它们从 1000 到 2000。内置的声音文件存放的地址为 /System/Library/Audio/UIsounds/ 。

Sound ID File name (iPhone) File name (iPod Touch) Category Note
1011 SMSReceived_Vibrate
1102 FailedUnlock
1311 SMSReceived_Vibrate
1350 RingerVibeChanged
1351 SilentVibeChanged
4095 Vibrate There was no category for this sound before 2.2. In the SDK this is the constant kSystemSoundID_Vibrate.
1005 alarm.caf sq_alarm.caf CalendarAlert
1304 alarm.caf sq_alarm.caf SystemSoundPreview
1020 Anticipate.caf Anticipate.caf SMSReceived_Alert Available since 4.2
1320 Anticipate.caf Anticipate.caf SMSReceived_Selection Available since 4.2
1106 beep-beep.caf sq_beep-beep.caf ConnectedToPower
1113 begin_record.caf begin_record.caf BeginRecording Available since 3.0
1117 begin_video_record.caf begin_video_record.caf BeginVideoRecording Available since 3.0
1021 Bloom.caf Bloom.caf SMSReceived_Alert Available since 4.2
1321 Bloom.caf Bloom.caf SMSReceived_Selection Available since 4.2
1022 Calypso.caf Calypso.caf SMSReceived_Alert Available since 4.2
1322 Calypso.caf Calypso.caf SMSReceived_Selection Available since 4.2
1023 Choo_Choo.caf Choo_Choo.caf SMSReceived_Alert Available since 4.2
1323 Choo_Choo.caf Choo_Choo.caf SMSReceived_Selection Available since 4.2
1070 ct-busy.caf ct-busy.caf AudioToneBusy There was no category for this sound before 4.0.
1074 ct-call-waiting.caf ct-call-waiting.caf AudioToneCallWaiting There was no category for this sound before 4.0.
1153 ct-call-waiting.caf ct-call-waiting.caf VCCallWaiting Available since 4.1
1071 ct-congestion.caf ct-congestion.caf AudioToneCongestion There was no category for this sound before 4.0.
1073 ct-error.caf ct-error.caf AudioToneError There was no category for this sound before 4.0.
1075 ct-keytone2.caf ct-keytone2.caf AudioToneKey2 There was no category for this sound before 4.0.
1072 ct-path-ack.caf ct-path-ack.caf AudioTonePathAcknowledge There was no category for this sound before 4.0.
1024 Descent.caf Descent.caf SMSReceived_Alert Available since 4.2
1324 Descent.caf Descent.caf SMSReceived_Selection Available since 4.2
1200 dtmf-0.caf dtmf-0.caf TouchTone
1201 dtmf-1.caf dtmf-1.caf TouchTone
1202 dtmf-2.caf dtmf-2.caf TouchTone
1203 dtmf-3.caf dtmf-3.caf TouchTone
1204 dtmf-4.caf dtmf-4.caf TouchTone
1205 dtmf-5.caf dtmf-5.caf TouchTone
1206 dtmf-6.caf dtmf-6.caf TouchTone
1207 dtmf-7.caf dtmf-7.caf TouchTone
1208 dtmf-8.caf dtmf-8.caf TouchTone
1209 dtmf-9.caf dtmf-9.caf TouchTone
1211 dtmf-pound.caf dtmf-pound.caf TouchTone
1210 dtmf-star.caf dtmf-star.caf TouchTone
1114 end_record.caf end_record.caf EndRecording Available since 3.0
1118 end_video_record.caf end_video_record.caf EndVideoRecording Available since 3.0
1025 Fanfare.caf Fanfare.caf SMSReceived_Alert Available since 4.2
1325 Fanfare.caf Fanfare.caf SMSReceived_Selection Available since 4.2
1115 jbl_ambiguous.caf jbl_ambiguous.caf JBL_Ambiguous Available since 3.0
1110 jbl_begin.caf jbl_begin.caf JBL_Begin Available since 3.0
1112 jbl_cancel.caf jbl_cancel.caf JBL_Cancel Available since 3.0
1111 jbl_confirm.caf jbl_confirm.caf JBL_Confirm Available since 3.0
1116 jbl_no_match.caf jbl_no_match.caf JBL_NoMatch Available since 3.0
1026 Ladder.caf Ladder.caf SMSReceived_Alert Available since 4.2
1326 Ladder.caf Ladder.caf SMSReceived_Selection Available since 4.2
1100 lock.caf sq_lock.caf ScreenLocked
1305 lock.caf sq_lock.caf SystemSoundPreview
1254 long_low_short_high.caf long_low_short_high.caf Headset_StartCall
1006 low_power.caf low_power.caf LowPower
1001 mail-sent.caf mail-sent.caf MailSent
1303 mail-sent.caf mail-sent.caf SystemSoundPreview
1259 middle_9_short_double_low.caf middle_9_short_double_low.caf Headset_TransitionEnd
1027 Minuet.caf Minuet.caf SMSReceived_Alert Available since 4.2
1327 Minuet.caf Minuet.caf SMSReceived_Selection Available since 4.2
1000 new-mail.caf new-mail.caf MailReceived
1302 new-mail.caf new-mail.caf SystemSoundPreview
1028 News_Flash.caf News_Flash.caf SMSReceived_Alert Available since 4.2
1328 News_Flash.caf News_Flash.caf SMSReceived_Selection Available since 4.2
1029 Noir.caf Noir.caf SMSReceived_Alert Available since 4.2
1329 Noir.caf Noir.caf SMSReceived_Selection Available since 4.2
1108 photoShutter.caf photoShutter.caf CameraShutter
1003 ReceivedMessage.caf ReceivedMessage.caf SMSReceived
1301 ReceivedMessage.caf ReceivedMessage.caf SystemSoundPreview
1107 RingerChanged.caf RingerChanged.caf RingerSwitchIndication
1004 SentMessage.caf SentMessage.caf SMSSent
1109 shake.caf shake.caf ShakeToShuffle Available since 3.0
1030 Sherwood_Forest.caf Sherwood_Forest.caf SMSReceived_Alert Available since 4.2
1330 Sherwood_Forest.caf Sherwood_Forest.caf SMSReceived_Selection Available since 4.2
1255 short_double_high.caf short_double_high.caf Headset_Redial
1257 short_double_low.caf short_double_low.caf Headset_EndCall
1258 short_double_low.caf short_double_low.caf Headset_CallWaitingActions
1256 short_low_high.caf short_low_high.caf Headset_AnswerCall
1051 SIMToolkitCallDropped.caf SIMToolkitCallDropped.caf SIMToolkitTone
1052 SIMToolkitGeneralBeep.caf SIMToolkitGeneralBeep.caf SIMToolkitTone
1053 SIMToolkitNegativeACK.caf SIMToolkitNegativeACK.caf SIMToolkitTone
1054 SIMToolkitPositiveACK.caf SIMToolkitPositiveACK.caf SIMToolkitTone
1055 SIMToolkitSMS.caf SIMToolkitSMS.caf SIMToolkitTone
1007 sms-received1.caf sms-received1.caf SMSReceived_Alert
1012 sms-received1.caf sms-received1.caf SMSReceived_Alert
1307 sms-received1.caf sms-received1.caf SMSReceived_Selection
1312 sms-received1.caf sms-received1.caf SMSReceived_Selection
1008 sms-received2.caf sms-received2.caf SMSReceived_Alert
1308 sms-received2.caf sms-received2.caf SMSReceived_Selection
1009 sms-received3.caf sms-received3.caf SMSReceived_Alert
1309 sms-received3.caf sms-received3.caf SMSReceived_Selection
1010 sms-received4.caf sms-received4.caf SMSReceived_Alert
1310 sms-received4.caf sms-received4.caf SMSReceived_Selection
1013 sms-received5.caf sms-received5.caf SMSReceived_Alert
1313 sms-received5.caf sms-received5.caf SMSReceived_Selection
1014 sms-received6.caf sms-received6.caf SMSReceived_Alert
1314 sms-received6.caf sms-received6.caf SMSReceived_Selection
1031 Spell.caf Spell.caf SMSReceived_Alert Available since 4.2
1331 Spell.caf Spell.caf SMSReceived_Selection Available since 4.2
1032 Suspense.caf Suspense.caf SMSReceived_Alert Available since 4.2
1332 Suspense.caf Suspense.caf SMSReceived_Selection Available since 4.2
1033 Telegraph.caf Telegraph.caf SMSReceived_Alert Available since 4.2
1333 Telegraph.caf Telegraph.caf SMSReceived_Selection Available since 4.2
1057 Tink.caf Tink.caf PINKeyPressed
1103 Tink.caf sq_tock.caf KeyPressed
1034 Tiptoes.caf Tiptoes.caf SMSReceived_Alert Available since 4.2
1334 Tiptoes.caf Tiptoes.caf SMSReceived_Selection Available since 4.2
1104 Tock.caf sq_tock.caf KeyPressed
1105 Tock.caf sq_tock.caf KeyPressed
1306 Tock.caf sq_tock.caf KeyPressClickPreview The category was SystemSoundPreview before 3.2.
1016 tweet_sent.caf tweet_sent.caf SMSSent Available since 5.0
1035 Typewriters.caf Typewriters.caf SMSReceived_Alert Available since 4.2
1335 Typewriters.caf Typewriters.caf SMSReceived_Selection Available since 4.2
1101 unlock.caf sq_lock.caf ScreenUnlocked
1036 Update.caf Update.caf SMSReceived_Alert Available since 4.2
1336 Update.caf Update.caf SMSReceived_Selection Available since 4.2
1050 ussd.caf ussd.caf USSDAlert
1152 vc~ended.caf vc~ended.caf VCEnded Available since 4.0
1150 vc~invitation-accepted.caf vc~invitation-accepted.caf VCInvitationAccepted Available since 4.0
1151 vc~ringing.caf vc~ringing.caf VCRinging Available since 4.0
1154 vc~ringing.caf vc~ringing.caf VCCallUpgrade Available since 4.1
1002 Voicemail.caf Voicemail.caf VoicemailReceived
1015 Voicemail.caf Voicemail.caf Available since 2.1
1300 Voicemail.caf Voicemail.caf SystemSoundPreview
1315 Voicemail.caf Voicemail.caf SystemSoundPreview Available since 2.1

使用的时候,添加引用 #import <AudioToolbox/AudioToolbox.h>

SystemSound sound=1109;
AudioServicesPlaySystemSound(sound);

播放是以当前系统的音量来进行后台播放,比较适合我在这个应用中的需要。

分类: iOS, 转载 标签: , ,

给你一个童佳倩又如何

2011年7月29日 没有评论

给你一个童佳倩,从高中开始爱你,然后到大学时,你们俩不在一个大学,此时同班的一个女生对你嘘寒问暖,各种体贴,各种温柔,终于某天你嫌她不在身边陪着你,爱情败给了距离,你对她说我们分手吧。于是,一个童佳倩就这样没了。

给你一个童佳倩,她放弃自己的生活陪你吃路边小店,看打折电影,但是心甘情愿,只要与你在一起就发自内心的快乐,偶尔小奢侈。然后某天你遇到另外一个人,与你一样的成长环境,思维 习惯 饮食 娱乐 生活 都与你步调一致,你不会自卑没有压力不用玩儿命的奋斗。于是你对她说,你是个好人,我们分手吧,你要的我给不了。你更爱自己。于是,又一个童佳倩没了。

给你一个童佳倩,大冬天愿意站在风里等你一小时,从小娇气的她会有小抱怨,但是下次还是默默等待。可某天另外一个女人对你没有抱怨她聪明的知道躲在室内或者自己先吃饭,你发现这样原来这么省心,你忽然觉得童佳倩总是抱怨多麻烦啊 虽然她抱怨过后总是记得点你喜欢吃的菜买你喜欢的零食,你对她说,我不想再哄你了,我喜欢省心的女孩子。于是,又一个童佳倩没了。

给你一个童佳倩,不要车,不要钱,不要房,不要钻戒,她也有一颗陪你到老的心。可后来你发现她身边的朋友有车,有房,有钱还有钻戒,你开始忧愁,你开始觉得心其实没那么重要,它远远没有车子、房子、票子那些实在,你没信心,你懒惰,你身边的人都说你们不可能,你觉得给不了她未来。你对她说,我们分手吧,跟你在一起我看不到未来。于是,又一个童佳倩没了。

给你一个童佳倩,为了与你在一起,丢了原本的优越。放下大小姐的身段,学着面对生活,精打细算,洗手作羹汤。是的,开始你很感动,可后来你发现她身上洗不掉的小脾气和小优越是那么的烦人,你开始指责她,你觉得她闹脾气不懂事,你嫌弃她太娇气质疑你 不懂得思考生活的苦难。然后你对他说,我们分手吧。于是,又一个童佳倩没了。

给你一个童佳倩又如何?其实我们身边从来不缺童佳倩这样的女人,虽然不多。看《裸婚时代》的时候男孩子们都觉得,童佳倩是多么多么好的一个女孩子,多么多么的难得,如果自己有幸遇到,一定会紧紧把握绝不放手。某小孩还Q我问姐这种好女人是不是都死光了 是不是女人都物质的要命。 呵呵,给你一个童佳倩,你能克服以上种种以及没提到的种种,最后仍然与她站在一起,相守到老吗?

电视剧之所以那么容易让人感动,是因为它的结局我们总能预测到或者朝我们希望的方向发展。但生活的精彩之处,就在于它的不可预测性,你永远不会知道明天到底会发生什么,未来到底又是怎样的。现实生活里面的童佳倩,她做不到只花30集电视剧的时间,就让你看到一个贤惠 温柔 懂事 大气的好妻子,生活的长度不是一部电视剧的时间就可以演绎完整的。

给你一个童佳倩式的女人,可你会给她时间 宽容 和足够的疼爱去让她成长为一个真正的童佳倩么?

分类: 转载 标签:

给你一个刘易阳又如何

2011年7月29日 1 条评论

给你一个刘易阳,从高中开始爱你,然后到大学时,你们俩不在一个大学,此时同班的一个男生对你嘘寒问暖,各种体贴,终于某天你嫌他不在身边陪着你,爱情败给了距离,你对他说我们分手吧。于是,一个刘易阳就这样没了。

给你一个刘易阳,大冬天愿意陪你背着你逛街,可某天另外一个男人开着车载着你到处玩,你发现车里原来这么暖和,你忽然觉得大冬天的走在街上多冷啊,你对他说,我不想再挨冻了,我喜欢坐车。于是,又一个刘易阳没了。
给你一个刘易阳,他把生活费攒下来只是为了请你吃一顿必胜客,然后某天你遇到另外一个人,为你一掷千金,各种美食,各种名牌,你不再只想吃一顿必胜客了,你对他说,你是个好人,我们分手吧,我要的你给不了。于是,又一个刘易阳没了。
给你一个刘易阳,没车,没钱,没房,没钻戒,他说他有一颗陪你到老的心。可后来你发现你身边的朋友有车,有房,有钱还有钻戒,你开始嫌弃,你开始觉得心其实没那么重要,它远远没有车子、房子、票子那些实在,你对他说,我们分手吧,跟你在一起我看不到未来。于是,又一个刘易阳没了。

给你一个刘易阳,为了在医院陪你,丢了工作。是的,开始你很感动,可后来你发现失业后原来生活里有这么多用钱的地方,你开始指责他,你觉得他没出息,然后你对他说,我们分手吧。于是,又一个刘易阳没了。
给你一个刘易阳又如何?其实我们身边从来不缺刘易阳这样的男人,记得以前看《梵高传》的时候,里面写到关于梵高的感情故事,他当时爱上一个妓女,为了证明自己的真心,把自己的耳朵割下来送给对方。很多女孩子看到这里时,都很感动,觉得自己要是在那个年代,一定会不顾一切的嫁给梵高,嫁给这个天才。而事实是梵高生前一直穷困潦倒,他的天才是在他死后才被发现和认可。如果你不知道这样的结局,如果你不知道梵高后来会被历史承认,你还会不顾一切,奋不顾身的嫁给那个穷困潦倒的梵高吗?

电视剧之所以那么容易让人感动,是因为它的结局我们总能预测到或者朝我们希望的方向发展。但生活的精彩之处,就在于它的不可预测性,你永远不会知道明天到底会发生什么,未来到底又是怎样的。现实生活里面的刘易阳,他做不到只花30集电视剧的时间,就让你看到希望,看到美好,看到未来,生活的长度不是一部电视剧的时间就可以演绎完整的。
给你一个刘易阳式的男人,可你会给他时间和宽容让他成长为真正的刘易阳吗?

分类: 转载 标签: