Changeset 1211:cd16786b451f in roaraudio
- Timestamp:
- 02/05/09 03:44:16 (15 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
include/roaraudio/audio.h
r1062 r1211 36 36 Bits: 37 37 76543210 38 |||||\---\ byte- 39 ||||\----/ order 40 |||\-----> unsigned? 41 ||\------> PCM(0) or MIDI(1)? 42 |\-------> PCM/MIDI(0) or hi-level codecs(1) 43 \--------> MISC(0) or RIFF/WAVE like(1) 38 |||||||\---\ byte- 39 ||||||\----/ order 40 |||||\-----> unsigned? 41 ||||\------> PCM(0) or MIDI(1)? 42 |||\-------> PCM/MIDI(0) or hi-level codecs(1) 43 ||\--------> MISC(0) or RIFF/WAVE like(1) 44 |\---------> first set(0) or second set(1) 45 \----------> (0) 44 46 45 47 BB = Byte order / MSB/LSB 48 49 -- First Set: 46 50 47 51 MIDI 0x08: … … 50 54 51 55 hi-level 0x10: 52 76543210 53 0000 0x10 -> Ogg Vorbis 54 0001 0x11 -> Native FLAC 55 0010 0x12 -> Ogg Speex 56 0011 0x13 -> Reserved for CELT 57 0100 0x14 -> Ogg FLAC 58 0101 0x15 -> Ogg General 59 0110 0x16 -> Ogg CELT 60 [...] 61 **** 0x1a -> ROAR CELT 62 **** 0x1b -> ROAR SPEEX 56 76543210 57 0000 0x10 -> Ogg Vorbis 58 0001 0x11 -> Native FLAC 59 0010 0x12 -> Ogg Speex 60 0011 0x13 -> Reserved for CELT 61 0100 0x14 -> Ogg FLAC 62 0101 0x15 -> Ogg General 63 0110 0x16 -> Ogg CELT 64 [...] 65 **** 0x1a -> ROAR CELT 66 **** 0x1b -> ROAR SPEEX 67 **** 0x1c -> RAUM 68 **** 0x1d -> RAUM Vorbis 63 69 64 70 RIFF/WAVE like 0x20: … … 70 76 00BB 0x30 -> A-Law (base) 71 77 01BB 0x34 -> mu-Law (base) 78 79 -- Second Set: 80 81 Bits: 82 76543210 83 |||||||\---\ byte- 84 ||||||\----/ order 85 |||||\-----> unsigned? (or other flags) 86 ||||\------> META: text(0) or binary(1) 87 |||\-------> META(0) 88 ||\--------> (0) 89 |\---------> second set(1) 90 \----------> (0) 91 92 Meta Codecs 0x40: 93 76543210 94 0000 0x40 -> Meta Text: Vorbis Comment Like 95 [...] 96 0100 0x44 -> Meta Text: RoarAudio Like 97 [...] 98 11BB 0x4c -> Meta Binary: RoarAudio Like 99 72 100 */ 73 101 … … 112 140 #define ROAR_CODEC_MULAW 0x34 113 141 142 // Meta Codecs: 143 #define ROAR_CODEC_META_VCLT 0x40 /* VCLT = Vorbis Comment Like Text */ 144 #define ROAR_CODEC_META_RALT 0x44 /* RALT = RoarAudio Like Text */ 145 #define ROAR_CODEC_META_RALB 0x4c /* RALB = RoarAudio Like Binary */ 146 /* if no byte order is given then you 147 should assume BE as it is network 148 byte order */ 149 #define ROAR_CODEC_META_RALB_LE (ROAR_CODEC_META_RALB | ROAR_CODEC_LE) 150 #define ROAR_CODEC_META_RALB_BE (ROAR_CODEC_META_RALB | ROAR_CODEC_BE) 151 #define ROAR_CODEC_META_RALB_PDP (ROAR_CODEC_META_RALB | ROAR_CODEC_PDP) 114 152 115 153 #if BYTE_ORDER == BIG_ENDIAN -
libroar/stream.c
r1167 r1211 484 484 {ROAR_CODEC_MULAW, "ulaw" }, // alias 485 485 486 // Meta Codecs: 487 {ROAR_CODEC_META_VCLT, "meta_vclt" }, 488 {ROAR_CODEC_META_RALT, "meta_ralt" }, 489 {ROAR_CODEC_META_RALB, "meta_ralb" }, 490 {ROAR_CODEC_META_RALB_LE, "meta_ralb_le" }, 491 {ROAR_CODEC_META_RALB_BE, "meta_ralb_be" }, 492 {ROAR_CODEC_META_RALB_PDP, "meta_ralb_pdp"}, 493 486 494 {-1, NULL} 487 495 };
Note: See TracChangeset
for help on using the changeset viewer.