#+title: Audio

* Description Audio sample file AudioAufzeichnungLOW.bin

Little Endian!!!

** Global Frame Header (6 x 32 Bit) Offset 0x00000000

*** 32 Bit Magic word 0x726574fb = 0xfb746572 next magic bytes found at offsets

0x0000 (0000)
0x0544 (1348)
0x0a88 (2696)
0x0fcf (4047)
0x1510 (5392)
0x1a57 (6743)
0x1f9b (8091)
0x24df (9439)

*** 32 Bit Frame length in 32 bit words

0x51010000 = 0x00000151 = Integer 337 * 4 bytes = 1348 Bytes = 0x0544

*** 32 Bit Running Frame number

0x23450000 = 0x00004523 = Integer 17699

*** 32 Bit Frame Type

0x00010000 = 0x00000100 = Integer 256

*** 32 Bit Data header length in 32 bit words

0x0b000000 = 0x0000000b = Integer 11 * 4 = 44 Bytes

*** 32 Bit Reserved

0x00000000 = 0x00000000 = Integer 0

** Ammos Data header 44 bytes

4 Bytes Sample rate
4 Bytes Status
8 Bytes Frequency
4 Bytes Demod Bandwidth
4 Bytes Demod Type
4 Bytes Sample Count
4 Bytes Channel Count
4 Bytes Sample Size

8 Bytes timestamp if extended

0xd4300000 = 0x000030d4 = 12500 Sample rate
0x00000000 = 0x00000000 = 0 Squelch Status
0xc0d3f205 0x00000000 = 0x00000000 0x05f2d3c0 = 99800000 = 99.8 MHz
0xc0d40100 = 0x0001d4c0 = 120000 = 120 KHz
0x00000000 = 0x00000000 = 0 = FM
0x80020000 = 0x00000280 = Integer 640 = Sample Count per Channel
0x01000000 = 0x00000001 = 1 = 1 Channel
0x02000000 = 0x00000002 = 2 = 2 Bytes Sample size
0x1d26fe89 0xcada0500 = 0x0005daca 0x89fe261d = 1647938316938525 microseconds Unixtime = 2022-03-22T09:38:36

** Ammos Audio Data Body

Offset 0x0044 = Integer 68 - Next offset 1348 - Differenz = 1280
