Changeset 1065:a830b78ddb75 in roaraudio for libroardsp
- Timestamp:
- 12/25/08 17:07:11 (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libroardsp
- Files:
-
- 2 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 -
libroardsp/mulaw.c
r922 r1065 56 56 #include "libroardsp.h" 57 57 58 #ifdef ROAR_SUPPORT_MULAW 58 59 int16_t _roardsp_mulaw2pcm16[] = { 59 60 /* -------- SUN -------- */ … … 98 99 }; 99 100 101 #ifdef ROAR_SUPPORT_MULAW_RW 100 102 int8_t _roardsp_pcm142mulaw[] = { 101 103 /* -------- SUN -------- */ … … 1468 1470 /* -------- /SUN -------- */ 1469 1471 }; 1472 #endif 1473 #endif 1470 1474 1471 1475 int roardsp_conv_mulaw2pcm16 (int16_t * out, char * in, size_t len) { 1476 #ifdef ROAR_SUPPORT_MULAW 1472 1477 unsigned char * inp = (unsigned char *) in; 1473 1478 ssize_t i; … … 1478 1483 1479 1484 return 0; 1485 #else 1486 return -1; 1487 #endif 1480 1488 } 1481 1489 1482 1490 int roardsp_conv_pcm162mulaw (char * out, int16_t * in, size_t len) { 1491 #ifdef ROAR_SUPPORT_MULAW_RW 1483 1492 int i; 1484 1493 … … 1488 1497 1489 1498 return 0; 1499 #else 1500 return -1; 1501 #endif 1490 1502 } 1491 1503
Note: See TracChangeset
for help on using the changeset viewer.