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 "resourceaudioenums.hrh"
sl@0: #include "hwdeviceimplementationuids.hrh"
sl@0: 
sl@0: // RESOURCE DEFINITIONS
sl@0: 
sl@0: // -----------------------------------------------------------------------------
sl@0: //   
sl@0: // G711_DEC_RESOURCE
sl@0: // The G711_DEC_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 g711dec_pcm16_resource
sl@0: {
sl@0:     uid = KUidHwCodecG711Dec;
sl@0:     data =
sl@0:         {
sl@0:         DAL_RESOURCE_DATA
sl@0:             {
sl@0:             mode = EMMFStatePlaying; 
sl@0:               
sl@0:             cap_data =
sl@0:                 {
sl@0:                 HWDEVICE_CAPABILITIES_DATA
sl@0:                     {
sl@0:                     Rate =   EMMFSampleRate8000Hz;
sl@0:                     Encoding = EMMFSoundEncoding16BitPCM;
sl@0:                     Channels = EMMFMono;
sl@0:                     BufferSize = 5000;
sl@0:                     }
sl@0:                 };    // End of cap_data
sl@0:             }    // End of DMS_RESOURCE_DATA (encode mode)
sl@0:         }; // End of data[]
sl@0: }
sl@0: 
sl@0: 
sl@0: // End of File