Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for alarms files #6

Open
raleighlittles opened this issue Jan 18, 2024 · 0 comments
Open

Add support for alarms files #6

raleighlittles opened this issue Jan 18, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@raleighlittles
Copy link
Owner

Alarm files contain information about the set Alarms on the iPod.

A file with no alarms has a length of 8 bytes, with the first 4 bytes: "3a 00 00 40" all being the same

A file with 1 alarm has length 113 bytes

A file with 2 alarms has length 218 bytes

A file with 3 alarms has length 323 bytes

which implies one alarm is around 105 bytes

For a file with 1 alarm, the timestamp is stored in the 4 bytes (little endian) starting from byte 0x10 (16d)

Worked example:

the bytes below

00000010  b0 41 a8 65 06 00 00 80  07 00 00 00 04 00 00 00

image

image

And the name of the tone for the alarm (not the alarm name itself!) is at bytes 60 through 64

For a file with 2 alarms, the first timestamp is still in the same spot as in the 1 alarm case, but the 2nd alarms timestamp appears at byte
0x76 (118d)

For a file with 3 alarms, the third timestamp is at byte 226 (0xE2)

For a file with 4 alarms, the fourth timestamp is at byte 0x149 (329d)

@raleighlittles raleighlittles added the enhancement New feature or request label Jan 18, 2024
@raleighlittles raleighlittles self-assigned this Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant