|
1 // Copyright (c) 2007-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 |
|
17 |
|
18 // INCLUDES |
|
19 #include "resourcehwdeviceinitstructs.rh" |
|
20 #include "hwdeviceimplementationuids.hrh" |
|
21 #include "resourceaudioenums.hrh" |
|
22 |
|
23 // RESOURCE DEFINITIONS |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 // RAW_PCM16_RESOURCE |
|
28 // The RAW_PCM16_RESOURCE resource provides the client with the following |
|
29 // initialization information: |
|
30 // 1. Hardware device UID. This UID is defined by the client. |
|
31 // 2. The device capabilities parameters consisting of sampling rate, |
|
32 // type of encoding, channel definition (mono or stereo) and buffer size. |
|
33 // |
|
34 // ----------------------------------------------------------------------------- |
|
35 // |
|
36 |
|
37 RESOURCE DAL_RESOURCE_DATA_RESOURCE pcm16_pcmu8_enc_resource |
|
38 { |
|
39 uid =0x101F9F01; // //KMmfUidHwDevicePCM16ToPCMU8;;; |
|
40 data = |
|
41 { |
|
42 DAL_RESOURCE_DATA |
|
43 { |
|
44 mode = 2; //EMMFStateRecording |
|
45 |
|
46 cap_data = |
|
47 { |
|
48 HWDEVICE_CAPABILITIES_DATA |
|
49 { |
|
50 Rate = 0x3F; // NaviEngine Supports: 41000, 32000, 22050, 16000, |
|
51 // 11025 and 8000 Hz |
|
52 Encoding = EMMFSoundEncoding16BitPCM; |
|
53 Channels = 3; |
|
54 BufferSize = 4096; |
|
55 } |
|
56 }; // End of cap_data |
|
57 }, // End of DAL_RESOURCE_DATA (encode mode) |
|
58 |
|
59 DAL_RESOURCE_DATA |
|
60 { |
|
61 mode = EMMFStatePlaying; // Decode or Play |
|
62 |
|
63 cap_data = |
|
64 { |
|
65 HWDEVICE_CAPABILITIES_DATA |
|
66 { |
|
67 Rate = 0x67F; // Binary Rep: 11001111111 = 24000, 12000, 48000, 44100, |
|
68 // 32000, 22050, 16000, 11025 and 8000 Hz |
|
69 Encoding = EMMFSoundEncoding16BitPCM; |
|
70 Channels = 3; // 3 EMMFMono | EMMFStereo |
|
71 BufferSize = 28800; |
|
72 } |
|
73 }; // End of cap_data |
|
74 } // End of DMS_RESOURCE_DATA (decode mode) |
|
75 }; // End of data[] |
|
76 } |
|
77 |
|
78 |
|
79 // End of File |