iOS:使用playInputClick与带有音频工具箱的(1104)声音文件之间是否存在性能差异? [英] iOS: Is there a performance difference between using playInputClick vs the (1104) sound file with audio toolbox?

查看:467
本文介绍了iOS:使用playInputClick与带有音频工具箱的(1104)声音文件之间是否存在性能差异?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apple建议在自定义键盘中使用 playInputClick 来模拟咔嗒声。它更容易实现 AudioServicesPlaySystemSound(1104); 所以我的问题变成了, playInputClick 提供更好的性能还是它同样的事情?

Apple recommends using playInputClick in custom keyboards to simulate a click sound. It's easier to implement AudioServicesPlaySystemSound(1104); so my question then becomes, does playInputClick provide better performance or is it the same thing?

推荐答案

原因Apple推荐这可能不是性能。 AudioServicesPlaySystemSound(1104)可能总是会播放相同的声音,但如果Apple决定使用 playInputClick ,可能会播放另一种声音改变输入点击声。

Reason Apple recommended this is probably not performance. AudioServicesPlaySystemSound(1104) will probably always play the same sound but playInputClick may play another sound in the future if Apple decides to change the input click sound.

所以它们现在是一样的但它可能会改变,如果它确实你的应用将是唯一一个播放旧声音的应用程序使用 AudioServicesPlaySystemSound(1104)

So they are the same right now but it might change and if it does your app will be the only one playing the old sound if you stick to use AudioServicesPlaySystemSound(1104).

这篇关于iOS:使用playInputClick与带有音频工具箱的(1104)声音文件之间是否存在性能差异?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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