Changeset 1065:a830b78ddb75 in roaraudio for libroardsp/mulaw.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
  • libroardsp/mulaw.c

    r922 r1065  
    5656#include "libroardsp.h" 
    5757 
     58#ifdef ROAR_SUPPORT_MULAW 
    5859int16_t _roardsp_mulaw2pcm16[] = { 
    5960/* -------- SUN -------- */ 
     
    9899}; 
    99100 
     101#ifdef ROAR_SUPPORT_MULAW_RW 
    100102int8_t _roardsp_pcm142mulaw[] = { 
    101103/* -------- SUN -------- */ 
     
    14681470/* -------- /SUN -------- */ 
    14691471}; 
     1472#endif 
     1473#endif 
    14701474 
    14711475int roardsp_conv_mulaw2pcm16 (int16_t * out, char * in, size_t len) { 
     1476#ifdef ROAR_SUPPORT_MULAW 
    14721477 unsigned char * inp = (unsigned char *) in; 
    14731478 ssize_t i; 
     
    14781483 
    14791484 return 0; 
     1485#else 
     1486 return -1; 
     1487#endif 
    14801488} 
    14811489 
    14821490int roardsp_conv_pcm162mulaw (char * out, int16_t * in, size_t len) { 
     1491#ifdef ROAR_SUPPORT_MULAW_RW 
    14831492 int i; 
    14841493 
     
    14881497 
    14891498 return 0; 
     1499#else 
     1500 return -1; 
     1501#endif 
    14901502} 
    14911503 
Note: See TracChangeset for help on using the changeset viewer.