Ignore:
Timestamp:
Jul 27, 2017 6:45:48 AM (4 years ago)
Author:
ming
Message:

Fixed #2031: Add compile-time config for L16 codec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/l16.c

    r5153 r5632  
    313313    } 
    314314 
     315#if PJMEDIA_CODEC_L16_HAS_8KHZ_MONO 
    315316    if (count < *max_count) { 
    316317        /* 8KHz mono */ 
     
    322323        ++count; 
    323324    } 
    324  
     325#endif 
     326 
     327#if PJMEDIA_CODEC_L16_HAS_8KHZ_STEREO 
    325328    if (count < *max_count) { 
    326329        /* 8KHz stereo */ 
     
    332335        ++count; 
    333336    } 
     337#endif 
    334338 
    335339// disable some L16 modes 
     
    356360#endif 
    357361 
     362#if PJMEDIA_CODEC_L16_HAS_16KHZ_MONO 
    358363    if (count < *max_count) { 
    359364        /* 16000 Hz mono */ 
     
    365370        ++count; 
    366371    } 
    367  
    368  
     372#endif 
     373 
     374#if PJMEDIA_CODEC_L16_HAS_16KHZ_STEREO 
    369375    if (count < *max_count) { 
    370376        /* 16000 Hz stereo */ 
     
    376382        ++count; 
    377383    } 
     384#endif 
    378385 
    379386// disable some L16 modes 
Note: See TracChangeset for help on using the changeset viewer.