Changeset 899 for pjproject/trunk


Ignore:
Timestamp:
Jan 23, 2007 6:12:28 AM (18 years ago)
Author:
bennylp
Message:

Fixed ticket #74: unstable/stutter sound on Windows Mobile (thanks ChenHuang?)

Location:
pjproject/trunk/pjmedia
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/config.h

    r888 r899  
    6767 
    6868/** 
     69 * Specify number of sound buffers. Larger number is better for sound 
     70 * stability and to accomodate sound devices that are unable to send frames 
     71 * in timely manner, however it would take more memory. One individual 
     72 * buffer is about 10 or 20 ms long. 
     73 * 
     74 * Default: 32 
     75 */ 
     76#ifndef PJMEDIA_SOUND_BUFFER_COUNT 
     77#   define PJMEDIA_SOUND_BUFFER_COUNT       32 
     78#endif 
     79 
     80 
     81/** 
    6982 * Specify which A-law/U-law conversion algorithm to use. 
    7083 * By default the conversion algorithm uses A-law/U-law table which gives 
  • pjproject/trunk/pjmedia/src/pjmedia/conference.c

    r887 r899  
    5656 
    5757#define THIS_FILE       "conference.c" 
    58 #define RX_BUF_COUNT    8 
     58#define RX_BUF_COUNT    PJMEDIA_SOUND_BUFFER_COUNT 
    5959 
    6060#define BYTES_PER_SAMPLE    2 
  • pjproject/trunk/pjmedia/src/pjmedia/dsound.c

    r814 r899  
    4444#define BYTES_PER_SAMPLE    (BITS_PER_SAMPLE/8) 
    4545 
    46 #define MAX_PACKET_BUFFER_COUNT     32 
    47 #define DEFAULT_BUFFER_COUNT        16 
     46#define MAX_PACKET_BUFFER_COUNT     PJMEDIA_SOUND_BUFFER_COUNT 
     47#define DEFAULT_BUFFER_COUNT        PJMEDIA_SOUND_BUFFER_COUNT 
    4848 
    4949#define MAX_HARDWARE                16 
  • pjproject/trunk/pjmedia/src/pjmedia/splitcomb.c

    r819 r899  
    2828#define THIS_FILE           "splitcomb.c" 
    2929#define TMP_SAMP_TYPE       pj_int16_t 
    30 #define MAX_BUF_CNT         32 
     30#define MAX_BUF_CNT         PJMEDIA_SOUND_BUFFER_COUNT 
    3131 
    3232#if 0 
Note: See TracChangeset for help on using the changeset viewer.