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

    r817 r1065  
    5656#include "libroardsp.h" 
    5757 
     58#ifdef ROAR_SUPPORT_ALAW 
    5859int16_t _roardsp_alaw2pcm16[] = { 
    5960/* -------- SUN -------- */ 
     
    9899}; 
    99100 
     101#ifdef ROAR_SUPPORT_ALAW_RW 
    100102int8_t _roardsp_pcm132alaw[] = { 
    101103/* -------- SUN -------- */ 
     
    785787/* -------- /SUN -------- */ 
    786788}; 
     789#endif 
     790#endif 
    787791 
    788792int roardsp_conv_alaw2pcm16 (int16_t * out, char * in, size_t len) { 
     793#ifdef ROAR_SUPPORT_ALAW 
    789794 unsigned char * inp = (unsigned char *) in; 
    790795 ssize_t i; 
     
    795800 
    796801 return 0; 
     802#else 
     803 return -1; 
     804#endif 
    797805} 
    798806 
    799807int roardsp_conv_pcm162alaw (char * out, int16_t * in, size_t len) { 
     808#ifdef ROAR_SUPPORT_ALAW_RW 
    800809 int i; 
    801810 
     
    805814 
    806815 return 0; 
     816#else 
     817 return -1; 
     818#endif 
    807819} 
    808820 
     821 
    809822//ll 
Note: See TracChangeset for help on using the changeset viewer.