Using iPhone default Alarm sounds in application [duplicate]

倖福魔咒の 提交于 2019-12-09 07:08:40

问题


Possible Duplicate:
Play alert sound (same as default message ringtone)

Hello all,

Quick question - Is it possible to use one of the default sounds included on the iPhone - Marimba etc. in an iPhone application?

Thanks,
Teja


回答1:


The actual directories will only be accessible after JailBreak.

Ringtones (including Marimba):

/Library/Ringtones/

System sounds:

/System/Library/Audio/UISounds/

Or use 'AudioServicesPlaySystemSound()' like mentioned by Black Frog.
Note: This method is undocumented and will cause AppStore rejection.

Download link for system sounds (comment by clusterfu_k):
Can I get default audio files of Iphone (marimba, alarm, ascending,...)?
Note: Possible copyright infringement.



来源:https://stackoverflow.com/questions/5644021/using-iphone-default-alarm-sounds-in-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!