Changeset 2449
- Timestamp:
- Feb 10, 2009 1:02:11 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/aps-direct/pjmedia/src/pjmedia/symbian_sound_aps.cpp
r2445 r2449 983 983 samples_req = 80; 984 984 985 buf.iBuffer.Append(1); 986 buf.iBuffer.Append(0); 987 985 988 /* Call parent stream callback to get samples to play. */ 986 989 while (samples_ready < samples_req) { … … 1000 1003 samples_cnt = frame->samples_cnt / frame->subframe_cnt; 1001 1004 if (sf->data && sf->bitlen) { 1002 buf.iBuffer.Append(1);1003 buf.iBuffer.Append(0);1004 1005 buf.iBuffer.Append((TUint8*)sf->data, sf->bitlen>>3); 1005 1006 } else { 1006 buf.iBuffer.Append(0); 1007 buf.iBuffer.Append(0); 1007 pj_uint8_t silc; 1008 silc = (strm->setting.format.u32==PJMEDIA_FOURCC_PCMU)? 1009 pjmedia_linear2ulaw(0) : pjmedia_linear2alaw(0); 1010 buf.iBuffer.AppendFill(silc, samples_cnt); 1008 1011 } 1009 1012 samples_ready += samples_cnt; … … 1012 1015 1013 1016 } else { /* PJMEDIA_FRAME_TYPE_NONE */ 1014 buf.iBuffer.Append(0); 1015 buf.iBuffer.Append(0); 1017 pj_uint8_t silc; 1018 1019 silc = (strm->setting.format.u32==PJMEDIA_FOURCC_PCMU)? 1020 pjmedia_linear2ulaw(0) : pjmedia_linear2alaw(0); 1021 buf.iBuffer.AppendFill(silc, samples_req - samples_ready); 1016 1022 1017 1023 samples_ready = samples_req;
Note: See TracChangeset
for help on using the changeset viewer.