srsf/devasr/src/devasrresourcehandler.h
branchRCL_3
changeset 18 cad71a31b7fc
parent 17 8ce15fced3a6
child 19 e36f3802f733
equal deleted inserted replaced
17:8ce15fced3a6 18:cad71a31b7fc
     1 /*
       
     2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  This class reads the resource file and provides access to the
       
    15 *               information read from the resource file.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CDEVASRRESOURCEHANDLER_H
       
    21 #define CDEVASRRESOURCEHANDLER_H
       
    22 
       
    23 // CLASS DECLARATION
       
    24 
       
    25 /**
       
    26 *  This class encapsulates resource file handling functions
       
    27 *
       
    28 *  @lib DevASR.lib
       
    29 *  @since 2.0
       
    30 */
       
    31 class CDevASRResourceHandler : public CBase
       
    32 	{
       
    33     public: // Constructors and destructor
       
    34 
       
    35         /**
       
    36         * Two-phased constructor.
       
    37         */
       
    38         static CDevASRResourceHandler* NewL();
       
    39 
       
    40         /**
       
    41         * Destructor.
       
    42         */
       
    43         virtual ~CDevASRResourceHandler();
       
    44 
       
    45     private:
       
    46 
       
    47         /**
       
    48         * C++ default constructor.
       
    49         */
       
    50         CDevASRResourceHandler();
       
    51 
       
    52         /**
       
    53         * By default Symbian 2nd phase constructor is private.
       
    54         */
       
    55         void ConstructL();
       
    56 
       
    57         /**
       
    58         * Reads the data from the resource file.
       
    59         * @since 2.0
       
    60         * @param	-
       
    61         * @return	-
       
    62         */
       
    63 		void ReadResourceFileL();
       
    64 
       
    65 	public: // Data
       
    66 
       
    67 		// Recording sampling rate
       
    68 		TInt iSamplingRate;
       
    69 		// Number of bits per sample
       
    70 		TInt iBitsPerSample;
       
    71 		// Number of channels
       
    72 		TInt iMicrophoneGain;
       
    73 		// percentage of max speaker volume
       
    74 		TInt iSpeakerVolume;
       
    75 		// Number of frames to silence
       
    76 		TInt iSilenceFrames;
       
    77 		// Number of frames to pad at the end of end-pointed buffer
       
    78 		TInt iPadEndFrames;
       
    79 		// Number of frames to pad at the start of end-pointed buffer
       
    80 		TInt iPadStartFrames;
       
    81         // Size of playback/record buffer in bytes
       
    82         TInt iBufferSize;
       
    83         // Number of buffers gathered in WINS
       
    84         TInt iBuffersInWins;
       
    85         // Number of buffers gathered in THUMB
       
    86         TInt iBuffersInThumb;
       
    87 	};
       
    88 
       
    89 
       
    90 #endif // CDevASRResourceHandler_H
       
    91 
       
    92 // End of File