sl@0
|
1 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
|
sl@0
|
17 |
inline void CA2dpAudioCodecConfiguration::SetHeadsetCodecDataType(const TFourCC& aHeadsetCodecDataType)
|
sl@0
|
18 |
{
|
sl@0
|
19 |
iHeadsetCodecDataType = aHeadsetCodecDataType;
|
sl@0
|
20 |
}
|
sl@0
|
21 |
|
sl@0
|
22 |
|
sl@0
|
23 |
inline void CA2dpAudioCodecConfiguration::SetSampleRate(TUint aSampleRate)
|
sl@0
|
24 |
{
|
sl@0
|
25 |
iSampleRate = aSampleRate;
|
sl@0
|
26 |
}
|
sl@0
|
27 |
|
sl@0
|
28 |
|
sl@0
|
29 |
inline void CA2dpAudioCodecConfiguration::SetChannels(TUint aChannels)
|
sl@0
|
30 |
{
|
sl@0
|
31 |
iChannels = aChannels;
|
sl@0
|
32 |
}
|
sl@0
|
33 |
|
sl@0
|
34 |
|
sl@0
|
35 |
inline void CA2dpAudioCodecConfiguration::SetStereoSupport(TMMFStereoSupport aStereoSupport)
|
sl@0
|
36 |
{
|
sl@0
|
37 |
iStereoSupport = aStereoSupport;
|
sl@0
|
38 |
}
|
sl@0
|
39 |
|
sl@0
|
40 |
|
sl@0
|
41 |
inline const TFourCC& CA2dpAudioCodecConfiguration::HeadsetCodecDataType() const
|
sl@0
|
42 |
{
|
sl@0
|
43 |
return iHeadsetCodecDataType;
|
sl@0
|
44 |
}
|
sl@0
|
45 |
|
sl@0
|
46 |
|
sl@0
|
47 |
inline TUint CA2dpAudioCodecConfiguration::SampleRate() const
|
sl@0
|
48 |
{
|
sl@0
|
49 |
return iSampleRate;
|
sl@0
|
50 |
}
|
sl@0
|
51 |
|
sl@0
|
52 |
|
sl@0
|
53 |
inline TUint CA2dpAudioCodecConfiguration::Channels() const
|
sl@0
|
54 |
{
|
sl@0
|
55 |
return iChannels;
|
sl@0
|
56 |
}
|
sl@0
|
57 |
|
sl@0
|
58 |
|
sl@0
|
59 |
inline TMMFStereoSupport CA2dpAudioCodecConfiguration::StereoSupport() const
|
sl@0
|
60 |
{
|
sl@0
|
61 |
return iStereoSupport;
|
sl@0
|
62 |
}
|
sl@0
|
63 |
|
sl@0
|
64 |
|
sl@0
|
65 |
inline TAvdtpMediaCodecCapabilities* CA2dpAudioCodecConfiguration::RemoteCodecConfiguration() const
|
sl@0
|
66 |
{
|
sl@0
|
67 |
return iRemoteCodecConfiguration;
|
sl@0
|
68 |
}
|
sl@0
|
69 |
|
sl@0
|
70 |
|
sl@0
|
71 |
inline const TSBCFrameParameters& CA2dpAudioCodecConfiguration::LocalSBCCodecConfiguration() const
|
sl@0
|
72 |
{
|
sl@0
|
73 |
return iLocalSBCCodecConfiguration;
|
sl@0
|
74 |
}
|
sl@0
|
75 |
|
sl@0
|
76 |
|
sl@0
|
77 |
|
sl@0
|
78 |
inline TUint CA2dpCodecFrameHeaderParser::FrameLength() const
|
sl@0
|
79 |
{
|
sl@0
|
80 |
return iFrameLength;
|
sl@0
|
81 |
}
|
sl@0
|
82 |
|
sl@0
|
83 |
|
sl@0
|
84 |
inline TUint CA2dpCodecFrameHeaderParser::BitRate() const
|
sl@0
|
85 |
{
|
sl@0
|
86 |
return iBitRate;
|
sl@0
|
87 |
}
|
sl@0
|
88 |
|