Changeset 2357
- Timestamp:
- Oct 27, 2008 9:05:56 AM (16 years ago)
- Location:
- pjproject/trunk/pjmedia/src/pjmedia
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/symbian_sound.cpp
r2007 r2357 851 851 pi->samples_per_frame = strm->samples_per_frame; 852 852 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; 855 857 856 858 return PJ_SUCCESS; -
pjproject/trunk/pjmedia/src/pjmedia/symbian_sound_aps.cpp
r2174 r2357 729 729 pi->samples_per_frame = strm->samples_per_frame; 730 730 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; 733 734 734 735 return PJ_SUCCESS;
Note: See TracChangeset
for help on using the changeset viewer.