Changeset 1065:a830b78ddb75 in roaraudio for roard/codecfilter.c


Ignore:
Timestamp:
12/25/08 17:07:11 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support to disbale support for A-Law and mu-Law (all or just readwrite)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/codecfilter.c

    r1021 r1065  
    3838//#endif 
    3939 
    40  {ROAR_CODEC_ALAW, "alaw", "A-Law", NULL, ROAR_CODECFILTER_READ|ROAR_CODECFILTER_WRITE, 
    41   cf_alaw_open, cf_alaw_close, NULL, cf_alaw_write, cf_alaw_read, NULL}, 
    42  
    43  {ROAR_CODEC_MULAW, "mulaw", "mu-Law", NULL, ROAR_CODECFILTER_READ|ROAR_CODECFILTER_WRITE, 
    44   cf_mulaw_open, cf_mulaw_close, NULL, cf_mulaw_write, cf_mulaw_read, NULL}, 
     40#ifdef ROAR_SUPPORT_ALAW 
     41 {ROAR_CODEC_ALAW, "alaw", "A-Law", NULL, 
     42#ifdef ROAR_SUPPORT_ALAW_RW 
     43  ROAR_CODECFILTER_READ|ROAR_CODECFILTER_WRITE, 
     44#else 
     45  ROAR_CODECFILTER_READ, 
     46#endif 
     47  cf_alaw_open, cf_alaw_close, NULL, 
     48#ifdef ROAR_SUPPORT_ALAW_RW 
     49  cf_alaw_write, 
     50#else 
     51  NULL, 
     52#endif 
     53  cf_alaw_read, NULL}, 
     54#endif 
     55 
     56#ifdef ROAR_SUPPORT_MULAW 
     57 {ROAR_CODEC_MULAW, "mulaw", "mu-Law", NULL, 
     58#ifdef ROAR_SUPPORT_MULAW_RW 
     59  ROAR_CODECFILTER_READ|ROAR_CODECFILTER_WRITE, 
     60#else 
     61  ROAR_CODECFILTER_READ, 
     62#endif 
     63  cf_mulaw_open, cf_mulaw_close, NULL, 
     64#ifdef ROAR_SUPPORT_MULAW_RW 
     65  cf_mulaw_write, 
     66#else 
     67  NULL, 
     68#endif 
     69  cf_mulaw_read, NULL}, 
     70#endif 
    4571 
    4672#ifdef ROAR_HAVE_BIN_OGG123 
Note: See TracChangeset for help on using the changeset viewer.