nthState / Haptrix

Haptrix is a Haptic Experience Designer App. We have a macOS, iOS and Swift Package
https://www.haptrix.com
7 stars 1 forks source link

[Feature Request] - AutoTrim #22

Open nthState opened 3 years ago

nthState commented 3 years ago

Hans wrote:

Apple has limitations on the size of audio file I believe. My testing shows it hits limit around 4.2MB but is not consistent. You could create an AutoTrim feature. a) if you can allow creation of longer runs, that would be terrific. But allowing users to profile sound and create a sound “Block” would be helpful. b) if Apple limits, another approach may be to modify the JSON/AHAP file to separate audio from haptic and sync/time (NSTimeInterval) audio properly, I know that will work as I’ve created files and timed. Apple may balk at vibrations that run too long or other in future. That said, I think the feature would be useful for a broader audience. b) if Apple limits, it seems 30 second files often fall below the 4.2MB threshold. You could trim the audio file (AVAsset/CMTime). Base filename: Sound.ahap (Sound_30.ahap, Sound.60.ahap…).

nthState commented 3 years ago

I have tried recently with larger audio files and they do work, I wonder if the real issue is trying to get very long haptics to play (30+ seconds)