- Timestamp:
- Mar 4, 2010 3:47:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-audiodev/symb_vas_dev.cpp
r3078 r3116 416 416 TInt CPjAudioEngine::StartPlay() 417 417 { 418 TInt err ;418 TInt err = KErrNone; 419 419 420 420 pj_assert(iVoIPDnlink); … … 429 429 err = g711dec_if->SetMode((CVoIPFormatIntfc::TG711CodecMode) 430 430 setting_.mode); 431 pj_assert(err == KErrNone);432 431 } 433 432 break; … … 439 438 err = ilbcdec_if->SetMode((CVoIPFormatIntfc::TILBCCodecMode) 440 439 setting_.mode); 441 pj_assert(err == KErrNone); 442 } 443 break; 444 440 } 441 break; 442 443 case EAMR_NB: 444 /* Ticket #1008: AMR playback issue on few devices, e.g: E72, E52 */ 445 err = dec_fmt_if->SetFrameMode(ETrue); 446 break; 447 445 448 default: 446 449 break; 447 450 } 451 452 if (err != KErrNone) 453 goto on_return; 448 454 449 455 /* Configure audio routing */ … … 452 458 /* Start player */ 453 459 err = iVoIPDnlink->Start(); 454 460 461 on_return: 455 462 if (err == KErrNone) { 456 463 dn_state_ = STATE_STREAMING; … … 465 472 TInt CPjAudioEngine::StartRec() 466 473 { 467 TInt err ;474 TInt err = KErrNone; 468 475 469 476 pj_assert(iVoIPUplink); … … 478 485 err = g711enc_if->SetMode((CVoIPFormatIntfc::TG711CodecMode) 479 486 setting_.mode); 480 pj_assert(err == KErrNone);481 487 } 482 488 break; … … 488 494 err = ilbcenc_if->SetMode((CVoIPFormatIntfc::TILBCCodecMode) 489 495 setting_.mode); 490 pj_assert(err == KErrNone);491 496 } 492 497 break; 493 498 494 499 case EAMR_NB: 495 e nc_fmt_if->SetBitRate(setting_.mode);500 err = enc_fmt_if->SetBitRate(setting_.mode); 496 501 break; 497 502 … … 499 504 break; 500 505 } 506 507 if (err != KErrNone) 508 goto on_return; 501 509 502 510 /* Configure general codec setting */ … … 505 513 /* Start recorder */ 506 514 err = iVoIPUplink->Start(); 507 515 516 on_return: 508 517 if (err == KErrNone) { 509 518 up_state_ = STATE_STREAMING; … … 1113 1122 buffer.Append((TUint8*)sf->data, len); 1114 1123 } else { 1115 buffer.Append(0); 1124 enum {NO_DATA_FT = 15 }; 1125 pj_uint8_t amr_header = 4 || (NO_DATA_FT << 3); 1126 1127 buffer.Append(amr_header); 1116 1128 } 1117 1129 … … 1119 1131 1120 1132 } else { /* PJMEDIA_FRAME_TYPE_NONE */ 1121 buffer.Append(0); 1133 enum {NO_DATA_FT = 15 }; 1134 pj_uint8_t amr_header = 4 || (NO_DATA_FT << 3); 1135 1136 buffer.Append(amr_header); 1122 1137 1123 1138 frame->samples_cnt = 0;
Note: See TracChangeset
for help on using the changeset viewer.