Update contrib.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 #include "resourcehwdeviceinitstructs.rh"
20 #include "hwdeviceimplementationuids.hrh"
21 #include "resourceaudioenums.hrh"
23 // RESOURCE DEFINITIONS
25 // -----------------------------------------------------------------------------
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.
34 // -----------------------------------------------------------------------------
37 RESOURCE DAL_RESOURCE_DATA_RESOURCE pcmu8_pcm16_dec_resource
39 uid =0x101F9F21; // //KMmfUidHwDevicePCMU8ToPCM16;;;
44 mode = 2; //EMMFStateRecording
48 HWDEVICE_CAPABILITIES_DATA
51 Encoding = EMMFSoundEncoding16BitPCM;
56 }, // End of DAL_RESOURCE_DATA (encode mode)
60 mode = EMMFStatePlaying; // Decode or Play
64 HWDEVICE_CAPABILITIES_DATA
66 Rate = 0x67F; // Binary Rep: 11001111111 = 24000, 12000, 48000, 44100,
67 // 32000, 22050, 16000, 11025 and 8000 Hz
68 Encoding = EMMFSoundEncoding16BitPCM;
69 Channels = 3; // 3 EMMFMono | EMMFStereo
73 } // End of DMS_RESOURCE_DATA (decode mode)