开发者

iOS Fine-grained control of vibration unit

开发者 https://www.devze.com 2023-03-15 18:07 出处:网络
How much control do I have over the vibration unit on the iPhone? I am simulating a plucked string, it would be fantastic if I could get the iPhone to vibrate in accord with the sound.

How much control do I have over the vibration unit on the iPhone?

I am simulating a plucked string, it would be fantastic if I could get the iPhone to vibrate in accord with the sound.

so, a) is it possible to modulate the intensity of the vibration? b) is it possible to change the duration?

Would it be possible to mim开发者_开发技巧ic a sharp attack that falls off gradually over a period of a few seconds?

I am aware that in older versions of iOS, it was only possible to activate it. both duration and intensity were fixed: taking control on vibration

is this still the case? Or has it become more flexible?


iOS 5 comes with an app that let's you design a custom vibration. The vibration is "designed" based on the user tapping on the phone.

That means it's technically feasible to create custom vibrations, but I don't know if there's an API for it. If there was in the newest SDK, it'd still be under NDA anyway.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号