Changeset 1065:a830b78ddb75 in roaraudio for libroardsp/mulaw.c
- Timestamp:
- 12/25/08 17:07:11 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.