os/mm/devsound/hwdevapi/inc/TaskConfig.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/devsound/hwdevapi/inc/TaskConfig.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,134 @@
     1.4 +// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +/**
    1.20 + @publishedPartner
    1.21 + @released
    1.22 +*/
    1.23 +
    1.24 +#ifndef __TASKCONFIG_H__
    1.25 +#define __TASKCONFIG_H__
    1.26 +
    1.27 +/**
    1.28 +@publishedPartner
    1.29 +@released
    1.30 +
    1.31 +TTaskSampleRate is a member of TTaskConfig which tells the HwDevice plugin the sample
    1.32 +rate of the audio data.
    1.33 +*/
    1.34 +enum TTaskSampleRate
    1.35 +	{
    1.36 +  	/** 8000 Hz Sampling Rate
    1.37 +	*/
    1.38 +	ETask8000Hz  = 0x00000001,
    1.39 +  	/** 11025 Hz Sampling Rate
    1.40 +	*/
    1.41 +	ETask11025Hz = 0x00000002,
    1.42 +  	/** 16000 Hz Sampling Rate
    1.43 +	*/
    1.44 +	ETask16000Hz = 0x00000004,
    1.45 +  	/** 22050 Hz Sampling Rate
    1.46 +	*/
    1.47 +	ETask22050Hz = 0x00000008,
    1.48 +  	/** 32000 Hz Sampling Rate
    1.49 +	*/
    1.50 +	ETask32000Hz = 0x00000010,
    1.51 +  	/** 44100 Hz Sampling Rate
    1.52 +	*/
    1.53 +	ETask44100Hz = 0x00000020,
    1.54 +  	/** 48000 Hz Sampling Rate
    1.55 +	*/
    1.56 +	ETask48000Hz = 0x00000040,
    1.57 +  	/** 88200 Hz Sampling Rate
    1.58 +	*/
    1.59 +	ETask88200Hz = 0x00000080,
    1.60 +  	/** 96000 Hz Sampling Rate
    1.61 +	*/
    1.62 +	ETask96000Hz = 0x00000100,
    1.63 +  	/** 12000 Hz Sampling Rate
    1.64 +	*/
    1.65 +	ETask12000Hz = 0x00000200,
    1.66 +  	/** 24000 Hz Sampling Rate
    1.67 +	*/
    1.68 +	ETask24000Hz = 0x00000400,
    1.69 +	/** 64000 Hz Sampling Rate
    1.70 +	*/
    1.71 +	ETask64000Hz = 0x00000800
    1.72 +	};
    1.73 +
    1.74 +/**
    1.75 +@publishedPartner
    1.76 +@released
    1.77 +
    1.78 +TTaskStereoMode is a member of TTaskConfig which tells the HwDevice plugin whether stereo audio
    1.79 +data is interleaved or not.
    1.80 +*/
    1.81 +enum TTaskStereoMode
    1.82 +	{
    1.83 +  	/** Audio data is mono.
    1.84 +	*/
    1.85 +	ETaskMono			= 0x00000001,
    1.86 +  	/** Audio data is interleaved.
    1.87 +	*/
    1.88 +	ETaskInterleaved	= 0x00000002,
    1.89 +  	/** Audio data is non-interleaved.
    1.90 +	*/
    1.91 +	ETaskNonInterleaved	= 0x00000004
    1.92 +	};
    1.93 +
    1.94 +/**
    1.95 +@publishedPartner
    1.96 +@released
    1.97 +
    1.98 +Used by the SetConfig() method to configure the sample rate and stereo mode of a CMMFHwDevice 
    1.99 +plugin. The configuration of HwDevices is device specific.
   1.100 +*/
   1.101 +class TTaskConfig
   1.102 +	{
   1.103 +	public:
   1.104 +		/** The rate of the audio data.
   1.105 +
   1.106 +		@see TTaskSampleRate
   1.107 +	    */
   1.108 +		TInt iRate;
   1.109 +		/** The type of stereo audio data.
   1.110 +
   1.111 +		@see TTaskStereoMode
   1.112 +		*/
   1.113 +		TInt iStereoMode;
   1.114 +		/** Uid for this TTaskConfig struct
   1.115 +		*/
   1.116 +		TInt iUid;
   1.117 +	};
   1.118 +	
   1.119 +/**
   1.120 +@publishedPartner
   1.121 +@released
   1.122 +
   1.123 +Extended version of TTaskConfig used by the SetConfig() method to configure the sample rate, 
   1.124 +stereo mode and number of channels of a CMdfHwDevice plugin. The configuration of HwDevices 
   1.125 +is device specific.
   1.126 +*/	
   1.127 +class TTaskConfig2 : public TTaskConfig
   1.128 +	{
   1.129 +public:
   1.130 +	/** 
   1.131 +	The number of channels.
   1.132 +	*/
   1.133 +	TInt iNumberOfChannels;
   1.134 +	};	
   1.135 +
   1.136 +#endif
   1.137 +