equal
deleted
inserted
replaced
|
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __MDAHWINFO_H__ |
|
17 #define __MDAHWINFO_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 |
|
21 #ifdef SYMBIAN_MDF_SHAREDCHUNK_SOUNDDRIVER |
|
22 #include "mdasoundadapter.h" |
|
23 #else |
|
24 #include <mdasound.h> |
|
25 #endif |
|
26 |
|
27 class CMdaHwInfo : public CBase |
|
28 { |
|
29 |
|
30 public: |
|
31 static CMdaHwInfo* NewL(); |
|
32 ~CMdaHwInfo(); |
|
33 inline RMdaDevSound::TSoundFormatsSupportedBuf& GetPlayFormatsSupported() {return iPlayFormatsSupported;} |
|
34 inline RMdaDevSound::TCurrentSoundFormatBuf& GetPlayFormat() {return iPlayFormat;} |
|
35 inline RMdaDevSound::TSoundFormatsSupportedBuf& GetRecordFormatsSupported() { return iRecordFormatsSupported;} |
|
36 inline RMdaDevSound::TCurrentSoundFormatBuf& GetRecordFormat() { return iRecordFormat;} |
|
37 |
|
38 protected: |
|
39 CMdaHwInfo(); |
|
40 private: |
|
41 void ConstructL(); |
|
42 void GetHwInfoL(); |
|
43 |
|
44 RMdaDevSound::TSoundFormatsSupportedBuf iPlayFormatsSupported; |
|
45 RMdaDevSound::TCurrentSoundFormatBuf iPlayFormat; |
|
46 RMdaDevSound::TSoundFormatsSupportedBuf iRecordFormatsSupported; |
|
47 RMdaDevSound::TCurrentSoundFormatBuf iRecordFormat; |
|
48 RMdaDevSound iDevice; |
|
49 |
|
50 }; |
|
51 |
|
52 #endif |
|
53 |