![](/img/trans.png)
[英]Haptic feedback not playing nice with AVFoundation? (UIImpactFeedbackGenerator, etc)
[英]Playing a Custom Haptic Pattern from a File
我正在嘗試從.wav
文件中播放自定義觸覺模式。 蘋果文檔指定:
AHAP files are JSON-compliant dictionary representations of haptic and audio patterns that you can compose in a text editor, or any program that exports content in the JSON format.
我想知道如何從原始音頻文件生成 JSON 文件?
WAV 文件和觸覺模式之間沒有神奇的映射。 你只需要使用你的耳朵和大腦。 聆聽 WAV 文件並以模仿的方式編寫觸覺模式。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.