sl@0: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: sl@0: sl@0: // INCLUDES sl@0: #include "resourcehwdeviceinitstructs.rh" sl@0: #include "hwdeviceimplementationuids.hrh" sl@0: #include "resourceaudioenums.hrh" sl@0: sl@0: // RESOURCE DEFINITIONS sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: // RAW_PCM16_RESOURCE sl@0: // The RAW_PCM16_RESOURCE resource provides the client with the following sl@0: // initialization information: sl@0: // 1. Hardware device UID. This UID is defined by the client. sl@0: // 2. The device capabilities parameters consisting of sampling rate, sl@0: // type of encoding, channel definition (mono or stereo) and buffer size. sl@0: // sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: sl@0: RESOURCE DAL_RESOURCE_DATA_RESOURCE raw_pcm16_resource sl@0: { sl@0: uid = 0xa0000a7a; sl@0: data = sl@0: { sl@0: DAL_RESOURCE_DATA sl@0: { sl@0: mode = 2; //EMMFStateRecording sl@0: sl@0: cap_data = sl@0: { sl@0: HWDEVICE_CAPABILITIES_DATA sl@0: { sl@0: Rate = 0xff; sl@0: Encoding = EMMFSoundEncoding16BitPCM; sl@0: Channels = 3; sl@0: BufferSize = 4096; sl@0: } sl@0: }; // End of cap_data sl@0: }, // End of DAL_RESOURCE_DATA (encode mode) sl@0: sl@0: DAL_RESOURCE_DATA sl@0: { sl@0: mode = EMMFStatePlaying; // Decode or Play sl@0: sl@0: cap_data = sl@0: { sl@0: HWDEVICE_CAPABILITIES_DATA sl@0: { sl@0: Rate = 0x67F; // Binary Rep: 11001111111 = 24000, 12000, 48000, 44100, sl@0: // 32000, 22050, 16000, 11025 and 8000 Hz sl@0: Encoding = EMMFSoundEncoding16BitPCM; sl@0: Channels = 3; // 3 EMMFMono | EMMFStereo sl@0: BufferSize = 28800; sl@0: } sl@0: }; // End of cap_data sl@0: } // End of DMS_RESOURCE_DATA (decode mode) sl@0: }; // End of data[] sl@0: } sl@0: sl@0: sl@0: // End of File