You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
convert a .haptic to .ahap using haptic2ahap in split mode (without -n option)
Steps to Reproduce
Create a .haptic file, I used Meta Haptics Studio
./haptic2ahap hapticfile.haptic using haptic2ahap-0.2.1 (latest release). Note no -n option
Both hapticfile_transients.ahap and hapticfile_continuous.ahap contain "Version": 0.0.
Expected behavior
I should be able to preview both .ahap files on macOS (tested on Sonoma), and play them on iOS (tested on iOS 17)
Observed behavior
The ahap version is unsupported according to preview, and the haptic does not successfully play on my iPhone
For reference, previewing with fixed version looks like:
Code Samples & Details
According to the docs the top level Version key represents the Core Haptics version supported by the ahap.
I could manually mitigate by changing the version in each file from 0.0 to 1.0. It's not clear to me if the tool actually needs any changes to support current CH (are there even multiple versions), or if the version added to each ahap just needs to be updated to 1.0. With my mitigation I didn't notice any other issues & playback worked fine when played simultaneously.
Bug report
Checklist
Goals
convert a .haptic to .ahap using haptic2ahap in split mode (without -n option)
Steps to Reproduce
./haptic2ahap hapticfile.haptic
using haptic2ahap-0.2.1 (latest release). Note no-n
optionhapticfile_transients.ahap
andhapticfile_continuous.ahap
contain"Version": 0.0
.Expected behavior
I should be able to preview both .ahap files on macOS (tested on Sonoma), and play them on iOS (tested on iOS 17)
Observed behavior
The ahap version is unsupported according to preview, and the haptic does not successfully play on my iPhone
For reference, previewing with fixed version looks like:
Code Samples & Details
According to the docs the top level Version key represents the Core Haptics version supported by the ahap.
I could manually mitigate by changing the version in each file from
0.0
to1.0
. It's not clear to me if the tool actually needs any changes to support current CH (are there even multiple versions), or if the version added to each ahap just needs to be updated to 1.0. With my mitigation I didn't notice any other issues & playback worked fine when played simultaneously.In non-split mode the version is always set to 1.0 in the builder https://github.com/Lofelt/NiceVibrations/blob/main/core/datamodel/src/ios/v1.rs#L155 but this is skipped for split mode. Since split mode skips over this it's also lacking a filled out
Metadata
key unlike non-skip. Didn't attempt to set up env to fixThe text was updated successfully, but these errors were encountered: