os/mm/mmlibs/mmfw/Codecs/Inc/MMFCodecCommon/MMFAudioDataSettings.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2002-2003 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:
    15 *
    16 */
    17 
    18 #ifndef __MMF_TMMFAUDIO_DATA_SETTINGS_H__
    19 #define __MMF_TMMFAUDIO_DATA_SETTINGS_H__
    20 #include <e32std.h>
    21 
    22 /*
    23 * Generic Audio Parameters
    24 *
    25 * class TMMFAudioDataSettings
    26 *
    27 */
    28 class TMMFAudioDataSettings
    29 	{
    30 public:
    31 	enum TAudioCaps
    32 		{
    33 		// Sampled audio capabilities
    34 		ESampleRateFixed =		0x00000001,
    35 		ESampleRateAnyInRange = 0x00000002,
    36 		ESampleRate8000Hz =		0x00000010,
    37 		ESampleRate11025Hz =	0x00000040,
    38 		ESampleRate12000Hz =	0x00000080,
    39 		ESampleRate16000Hz =	0x00000100,
    40 		ESampleRate22050Hz =	0x00000400,
    41 		ESampleRate24000Hz =	0x00000800,
    42 		ESampleRate32000Hz =	0x00001000,
    43 		ESampleRate44100Hz =	0x00004000,
    44 		ESampleRate48000Hz =	0x00010000,
    45 		ESampleRate96000Hz =	0x00020000,
    46 		ESampleRate64000Hz =	0x00040000,
    47 		// Channel related - applies to sampled
    48 		EChannelsMono =			0x02000000,
    49 		EChannelsStereo =		0x04000000,
    50 		// Routing related
    51 		ERoutingControl =		0x08000000,
    52 		// True if data flow is synchronised with real time (e.g. stream)
    53 		ERealTime =				0x10000000
    54 		};
    55 	enum TAudioFlags
    56 		{
    57 		ENoLocalRouting =		0x00000001,
    58 		ENoNetworkRouting =		0x00000002
    59 		};
    60 public:
    61 	inline TMMFAudioDataSettings();
    62 	inline void Query(); // Call this when you just want to have caps and maxvolume filled
    63 public:
    64 	// Fixed values - must be queried
    65 	TInt iCaps;
    66 	TInt iMaxVolume; // One means fixed volume (zero not valid)
    67 	// Variables
    68 	TInt iSampleRate;
    69 	TInt iChannels;
    70 	TInt iVolume;
    71 	TInt iFlags;
    72 	};
    73 
    74 #endif //__MMF_TMMFAUDIO_DATA_SETTINGS_H__