English 中文(简体)
复制、粘贴和删除操作的系统声音效果
原标题:System sound effect for copy, paste and delete operations

有人知道如何对OS X 的( rag) 复制、 粘贴和删除操作播放系统声音效果吗? 我的意思是, 查找者在移动文件时所使用的声音。 我没有找到任何 API 来这样做 。 有人知道这些声音文件的位置吗? 我仅仅找到了系统警报声音( Frog, Submarine 等 ) 。

最佳回答

SystemSounds 可用

/System/Library/components/CoreAudio. 组件/内容/资源/SystemSounds/ 位置。

NSSound *systemSound = [[NSSound alloc] initWithContentsOfFile:@"/System/Library/Components/CoreAudio.component/Contents/Resources/SystemSounds/finder/move to trash.aif" byReference:YES];
if (systemSound) {
    [systemSound play];
}  

/System/Library/Components/CoreAudio.component/Contents/Resources/CoreAudioAUUI.bundle/Contents/Resources
问题回答

暂无回答




相关问题
Playing a Sound With Monotouch

No matter what I try (build -> content, NSUrl, filename) I get a null exception : file not found when I try to play a .caf sound file in monotouch. //var path = NSBundle.MainBundle.PathForResource("...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

Play sound in iPhone web app with Javascript?

I m currently creating an iPhone web application for piano chords, and I wanted to add an option that would let the user press a Play button and play the selected chord. However, I m not sure how to ...

热门标签