Changeset 1065:a830b78ddb75 in roaraudio for libroardsp/alaw.c
- Timestamp:
- 12/25/08 17:07:11 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroardsp/alaw.c
r817 r1065 56 56 #include "libroardsp.h" 57 57 58 #ifdef ROAR_SUPPORT_ALAW 58 59 int16_t _roardsp_alaw2pcm16[] = { 59 60 /* -------- SUN -------- */ … … 98 99 }; 99 100 101 #ifdef ROAR_SUPPORT_ALAW_RW 100 102 int8_t _roardsp_pcm132alaw[] = { 101 103 /* -------- SUN -------- */ … … 785 787 /* -------- /SUN -------- */ 786 788 }; 789 #endif 790 #endif 787 791 788 792 int roardsp_conv_alaw2pcm16 (int16_t * out, char * in, size_t len) { 793 #ifdef ROAR_SUPPORT_ALAW 789 794 unsigned char * inp = (unsigned char *) in; 790 795 ssize_t i; … … 795 800 796 801 return 0; 802 #else 803 return -1; 804 #endif 797 805 } 798 806 799 807 int roardsp_conv_pcm162alaw (char * out, int16_t * in, size_t len) { 808 #ifdef ROAR_SUPPORT_ALAW_RW 800 809 int i; 801 810 … … 805 814 806 815 return 0; 816 #else 817 return -1; 818 #endif 807 819 } 808 820 821 809 822 //ll
Note: See TracChangeset
for help on using the changeset viewer.