Changeset 318:c9882fe073c4 in roaraudio


Ignore:
Timestamp:
07/24/08 16:22:54 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added more hi-level codecs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/roaraudio/audio.h

    r317 r318  
    1111 Bits: 
    1212 76543210 
    13      |||\---\ byte- 
    14      ||\----/ order 
    15      |\-----> unsigned? 
    16      \------> PCM(0) or MIDI(1)? 
     13    ||||\---\ byte- 
     14    |||\----/ order 
     15    ||\-----> unsigned? 
     16    |\------> PCM(0) or MIDI(1)? 
     17    \-------> PCM/MIDI(0) or hi-level codecs(1) 
     18 
     19 MIDI 0x08: 
     20 76543210 
     21      000 0x08 -> MIDI File 
     22 
     23 hi-level 0x10: 
     24 76543210 
     25     0000 0x10 -> Ogg Vorbis 
     26     0001 0x11 -> Native FLAC 
     27     0010 0x12 -> Ogg Speex 
     28     0011 0x13 -> Reserved for CELT 
     29     0100 0x14 -> Ogg FLAC 
     30     0101 0x15 -> Ogg General 
    1731*/ 
    1832 
     
    2943#define ROAR_CODEC_PCM_U_BE  (ROAR_CODEC_PCM_S_BE  | ROAR_CODEC_UNSIGNED) 
    3044#define ROAR_CODEC_PCM_U_PDP (ROAR_CODEC_PCM_S_PDP | ROAR_CODEC_UNSIGNED) 
     45 
     46#define ROAR_CODEC_MIDI_FILE    0x08 
     47 
     48#define ROAR_CODEC_OGG_VORBIS   0x10 
     49#define ROAR_CODEC_FLAC         0x11 /* native FLAC without Ogg container */ 
     50#define ROAR_CODEC_OGG_SPEEX    0x12 
     51/* #define ROAR_CODEC_CELT/OGG_CELT 0x13 Reserved for CELT */ 
     52#define ROAR_CODEC_OGG_FLAC     0x14 
     53#define ROAR_CODEC_OGG_GENERAL  0x15 
    3154 
    3255#if BYTE_ORDER == BIG_ENDIAN 
Note: See TracChangeset for help on using the changeset viewer.