Update contrib.
2 * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Used to configure the speech encoders.
19 #ifndef CSPEECHENCODERCONFIG_H
20 #define CSPEECHENCODERCONFIG_H
26 const TUid KUidSpeechEncoderConfig = {0x10207AB2};
32 // FUNCTION PROTOTYPES
34 // FORWARD DECLARATIONS
36 class CMdaAudioInputStream;
41 * Interface for configuring speech encoders.
42 * Used to configure the speech encoders operting modes.
43 * This abstract class just provides the static NewL function for the creation
44 * of the proxy, and also defines the custom interface to be implemented by the
45 * proxy and the real custom interface implementation.
47 * @lib SpeechEncoderConfig.lib
50 class CSpeechEncoderConfig : public CBase
52 public: // Constructors and destructor
55 * Creates the interface.
57 IMPORT_C static CSpeechEncoderConfig*
58 NewL(CMMFDevSound& aDevSound);
61 * Creates the interface.
63 IMPORT_C static CSpeechEncoderConfig*
64 NewL(CMdaAudioInputStream& aUtility);
66 public: // New functions
68 * Retrieves the bitrates supported by the encoder.
70 * @param aSupportedBitrates array returning the supported bitrates.
73 IMPORT_C virtual TInt GetSupportedBitrates(
74 RArray<TUint>& aSupportedBitrates) = 0;
77 * Sets the bitrate for encoding.
79 * @param aBitrate requested encoding bitrate.
82 IMPORT_C virtual TInt SetBitrate(TUint aBitrate) = 0;
85 * Retrieves the current encode bitrate.
87 * @param aBitrate returns current encode bitrate.
90 IMPORT_C virtual TInt GetBitrate(TUint& aBitrate) = 0;
93 * Enables and disables the voice activity (VAD) mode.
95 * @param aVadMode requested VAD mode.
98 IMPORT_C virtual TInt SetVadMode(TBool aVadMode) = 0;
101 * Retrieves the current state of VAD mode.
103 * @param aVadMode returns current VAD mode.
106 IMPORT_C virtual TInt GetVadMode(TBool& aVadMode) = 0;
108 public: // Functions from base classes
109 protected: // New functions
110 protected: // Functions from base classes
116 public: // Friend classes
117 protected: // Friend classes
118 private: // Friend classes
122 #endif // CSPEECHENCODERCONFIG_H