Changeset 2357


Ignore:
Timestamp:
Oct 27, 2008 9:05:56 AM (11 years ago)
Author:
nanang
Message:

Minor fix on Symbian sound latency info.

Location:
pjproject/trunk/pjmedia/src/pjmedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/symbian_sound.cpp

    r2007 r2357  
    851851    pi->samples_per_frame = strm->samples_per_frame; 
    852852    pi->bits_per_sample = BYTES_PER_SAMPLE * 8; 
    853     pi->rec_latency = 0; 
    854     pi->play_latency = 0; 
     853    // Symbian uses 4096 bytes buffer (~2048 samples/256 ms) for PCM rec & play. 
     854    // The latencies below are rounded up to be a multiplication of 80. 
     855    pi->rec_latency  = 2080; 
     856    pi->play_latency = 2080; 
    855857 
    856858    return PJ_SUCCESS; 
  • pjproject/trunk/pjmedia/src/pjmedia/symbian_sound_aps.cpp

    r2174 r2357  
    729729    pi->samples_per_frame = strm->samples_per_frame; 
    730730    pi->bits_per_sample = BYTES_PER_SAMPLE * 8; 
    731     pi->rec_latency = 0; 
    732     pi->play_latency = 0; 
     731    // latencies approximation (in samples) 
     732    pi->rec_latency  = strm->samples_per_frame * 2; 
     733    pi->play_latency = strm->samples_per_frame * 2; 
    733734 
    734735    return PJ_SUCCESS; 
Note: See TracChangeset for help on using the changeset viewer.