447 TRACE_PRN_N1(_L("TMS->DNL: GetG711CodecMode [%d]"), mode); |
452 TRACE_PRN_N1(_L("TMS->DNL: GetG711CodecMode [%d]"), mode); |
448 return TMS_RESULT_SUCCESS; |
453 return TMS_RESULT_SUCCESS; |
449 } |
454 } |
450 |
455 |
451 // ----------------------------------------------------------------------------- |
456 // ----------------------------------------------------------------------------- |
452 // TMSIPDownlink::FrameModeRqrdForEC |
|
453 // |
|
454 // ----------------------------------------------------------------------------- |
|
455 // |
|
456 gint TMSIPDownlink::FrameModeRqrdForEC(gboolean& frmodereq) |
|
457 { |
|
458 gint err = TMS_RESULT_DOES_NOT_EXIST; |
|
459 |
|
460 if (iStatus == EReady) |
|
461 { |
|
462 if (iErrConcealmentIntfc) |
|
463 { |
|
464 err = iErrConcealmentIntfc->FrameModeRqrdForEC(frmodereq); |
|
465 TRACE_PRN_N1(_L("TMS->DNL: FrameModeRqrdForEC [%d]"), frmodereq); |
|
466 } |
|
467 } |
|
468 TRACE_PRN_IF_ERR(err); |
|
469 return err; |
|
470 } |
|
471 |
|
472 // ----------------------------------------------------------------------------- |
|
473 // TMSIPDownlink::SetFrameMode |
|
474 // |
|
475 // ----------------------------------------------------------------------------- |
|
476 // |
|
477 gint TMSIPDownlink::SetFrameMode(const gboolean frmode) |
|
478 { |
|
479 gint err = TMS_RESULT_DOES_NOT_EXIST; |
|
480 |
|
481 if (iStatus == EReady) |
|
482 { |
|
483 iFrameMode = frmode; |
|
484 |
|
485 if (iErrConcealmentIntfc) |
|
486 { |
|
487 err = iErrConcealmentIntfc->SetFrameMode(frmode); |
|
488 TRACE_PRN_N1(_L("TMS->DNL: SetFrameMode [%d]"), frmode); |
|
489 } |
|
490 } |
|
491 TRACE_PRN_IF_ERR(err); |
|
492 return err; |
|
493 } |
|
494 |
|
495 // ----------------------------------------------------------------------------- |
|
496 // TMSIPDownlink::GetFrameMode |
|
497 // |
|
498 // ----------------------------------------------------------------------------- |
|
499 // |
|
500 gint TMSIPDownlink::GetFrameMode(gboolean& frmode) |
|
501 { |
|
502 gint err = TMS_RESULT_DOES_NOT_EXIST; |
|
503 |
|
504 if (iErrConcealmentIntfc) |
|
505 { |
|
506 // not available through CIs -> return cached value |
|
507 frmode = iFrameMode; |
|
508 TRACE_PRN_N1(_L("TMS->DNL: GetFrameMode [%d]"), frmode); |
|
509 err = TMS_RESULT_SUCCESS; |
|
510 } |
|
511 TRACE_PRN_IF_ERR(err); |
|
512 return err; |
|
513 } |
|
514 |
|
515 // ----------------------------------------------------------------------------- |
|
516 // TMSIPDownlink::ConcealErrorForNextBuffer |
|
517 // |
|
518 // ----------------------------------------------------------------------------- |
|
519 // |
|
520 gint TMSIPDownlink::ConcealErrorForNextBuffer() |
|
521 { |
|
522 gint err = TMS_RESULT_DOES_NOT_EXIST; |
|
523 |
|
524 if (iErrConcealmentIntfc) |
|
525 { |
|
526 err = iErrConcealmentIntfc->ConcealErrorForNextBuffer(); |
|
527 TRACE_PRN_N(_L("TMS->DNL: ConcealErrorForNextBuffer")); |
|
528 } |
|
529 TRACE_PRN_IF_ERR(err); |
|
530 return err; |
|
531 } |
|
532 |
|
533 // ----------------------------------------------------------------------------- |
|
534 // TMSIPDownlink::SetCng |
457 // TMSIPDownlink::SetCng |
535 // |
458 // |
536 // ----------------------------------------------------------------------------- |
459 // ----------------------------------------------------------------------------- |
537 // |
460 // |
538 gint TMSIPDownlink::SetCng(const TMSFormatType fmttype, const gboolean cng) |
461 gint TMSIPDownlink::SetCng(const TMSFormatType fmttype, const gboolean cng) |
623 TRACE_PRN_IF_ERR(err); |
546 TRACE_PRN_IF_ERR(err); |
624 return err; |
547 return err; |
625 } |
548 } |
626 |
549 |
627 // ----------------------------------------------------------------------------- |
550 // ----------------------------------------------------------------------------- |
628 // TMSIPDownlink::BadLsfNextBuffer |
|
629 // |
|
630 // ----------------------------------------------------------------------------- |
|
631 // |
|
632 gint TMSIPDownlink::BadLsfNextBuffer() |
|
633 { |
|
634 gint err = TMS_RESULT_DOES_NOT_EXIST; |
|
635 |
|
636 if (iStatus == EStreaming) |
|
637 { |
|
638 if (iCodecID == KMccFourCCIdG729 && iG729DecoderIntfc) |
|
639 { |
|
640 err = iG729DecoderIntfc->BadLsfNextBuffer(); |
|
641 TRACE_PRN_N(_L("TMS->DNL: BadLsfNextBuffer")); |
|
642 } |
|
643 } |
|
644 TRACE_PRN_IF_ERR(err); |
|
645 return err; |
|
646 } |
|
647 |
|
648 // ----------------------------------------------------------------------------- |
|
649 // TMSIPDownlink::SetAudioDeviceL |
551 // TMSIPDownlink::SetAudioDeviceL |
650 // |
552 // |
651 // ----------------------------------------------------------------------------- |
553 // ----------------------------------------------------------------------------- |
652 void TMSIPDownlink::SetAudioDeviceL(TMSAudioOutput output) |
554 void TMSIPDownlink::SetAudioDeviceL(TMSAudioOutput output) |
653 { |
555 { |
654 TRACE_PRN_FN_ENT; |
556 TRACE_PRN_FN_ENT; |
655 |
|
656 if (!iAudioOutput) |
|
657 { |
|
658 iAudioOutput = CAudioOutput::NewL(*iDevSound); |
|
659 } |
|
660 |
557 |
661 if (iAudioOutput) |
558 if (iAudioOutput) |
662 { |
559 { |
663 // ENoPreference=0, EAll=1, ENoOutput=2, EPrivate=3, EPublic=4 |
560 // ENoPreference=0, EAll=1, ENoOutput=2, EPrivate=3, EPublic=4 |
664 CAudioOutput::TAudioOutputPreference outputDev; |
561 CAudioOutput::TAudioOutputPreference outputDev; |
692 // |
589 // |
693 void TMSIPDownlink::GetAudioDeviceL(TMSAudioOutput& output) |
590 void TMSIPDownlink::GetAudioDeviceL(TMSAudioOutput& output) |
694 { |
591 { |
695 TRACE_PRN_FN_ENT; |
592 TRACE_PRN_FN_ENT; |
696 |
593 |
697 if (!iAudioOutput) |
|
698 { |
|
699 iAudioOutput = CAudioOutput::NewL(*iDevSound); |
|
700 } |
|
701 |
|
702 if (iAudioOutput) |
594 if (iAudioOutput) |
703 { |
595 { |
704 CAudioOutput::TAudioOutputPreference outputDev = |
596 CAudioOutput::TAudioOutputPreference outputDev = |
705 iAudioOutput->AudioOutput(); |
597 iAudioOutput->AudioOutput(); |
|
598 TRACE_PRN_N1(_L("TMS->DNL: GetAudioDeviceL [%d]"), outputDev); |
706 |
599 |
707 switch (outputDev) |
600 switch (outputDev) |
708 { |
601 { |
709 case CAudioOutput::EPublic: |
602 case CAudioOutput::EPublic: |
710 output = TMS_AUDIO_OUTPUT_PUBLIC; |
603 output = TMS_AUDIO_OUTPUT_PUBLIC; |