1002 // Sets client capabilities for this instance of DevSound Adaptation. |
1002 // Sets client capabilities for this instance of DevSound Adaptation. |
1003 // (other items were commented in a header). |
1003 // (other items were commented in a header). |
1004 // ----------------------------------------------------------------------------- |
1004 // ----------------------------------------------------------------------------- |
1005 // |
1005 // |
1006 TInt CMMFDevSoundAdaptation::CBody::SetClientConfig( |
1006 TInt CMMFDevSoundAdaptation::CBody::SetClientConfig( |
1007 const TMMFClientConfig& aClientConfig) |
1007 const TProcessId& aActualProcessId, |
1008 { |
1008 const TProcessId& aProcessId) |
1009 DP_CONTEXT(CMMFDevSoundAdaptation::CBody::SetClientConfig *CD1*, CtxDevSound, DPLOCAL); |
1009 { |
1010 DP_IN(); |
1010 DP_CONTEXT(CMMFDevSoundAdaptation::CBody::SetClientConfig *CD1*, CtxDevSound, DPLOCAL); |
1011 |
1011 DP_IN(); |
1012 TInt err = iDevAudio->SetClientConfig(aClientConfig); |
1012 |
1013 if (err == KErrNone) |
1013 TInt err = iDevAudio->SetClientConfig(aActualProcessId, aProcessId); |
1014 { |
1014 DP0_RET(err, "%d"); |
1015 iClientConfig = aClientConfig; |
1015 } |
1016 } |
1016 |
1017 DP0_RET(err, "%d"); |
1017 TInt CMMFDevSoundAdaptation::CBody::SetClientConfig( |
1018 } |
1018 const TProcessId& aProcessId) |
1019 |
1019 { |
1020 // ----------------------------------------------------------------------------- |
1020 DP_CONTEXT(CMMFDevSoundAdaptation::CBody::SetClientConfig *CD1*, CtxDevSound, DPLOCAL); |
1021 // TMMFClientConfig& CMMFDevSoundAdaptation::CBody::ClientConfig |
1021 DP_IN(); |
1022 // Returns client capabilities of this instance of DevSound Adaptation. |
1022 |
1023 // (other items were commented in a header). |
1023 TInt err = iDevAudio->SetClientConfig(aProcessId); |
1024 // ----------------------------------------------------------------------------- |
1024 DP0_RET(err, "%d"); |
1025 // |
1025 } |
1026 const TMMFClientConfig& CMMFDevSoundAdaptation::CBody::ClientConfig() const |
|
1027 { |
|
1028 DP_CONTEXT(CMMFDevSoundAdaptation::CBody::ClientConfig *CD1*, CtxDevSound, DPLOCAL); |
|
1029 DP_IN(); |
|
1030 DP_OUT(); |
|
1031 return iClientConfig; |
|
1032 } |
|
1033 |
|
1034 |
1026 |
1035 TBool CMMFDevSoundAdaptation::CBody::CloseDevSound() |
1027 TBool CMMFDevSoundAdaptation::CBody::CloseDevSound() |
1036 { |
1028 { |
1037 DP_CONTEXT(CMMFDevSoundAdaptation::CBody::CloseDevSound *CD1*, CtxDevSound, DPLOCAL); |
1029 DP_CONTEXT(CMMFDevSoundAdaptation::CBody::CloseDevSound *CD1*, CtxDevSound, DPLOCAL); |
1038 DP_IN(); |
1030 DP_IN(); |