os/mm/mmhais/refacladapt/src/audiocodec/resourceaudioenums.hrh
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mmhais/refacladapt/src/audiocodec/resourceaudioenums.hrh	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,129 @@
     1.4 +/*
     1.5 +* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +
    1.23 +#ifndef RESOURCEAUDIOENUMS_HRH
    1.24 +#define RESOURCEAUDIOENUMS_HRH
    1.25 +
    1.26 +// DATA TYPES
    1.27 +
    1.28 +/**
    1.29 +* Sample rates supported by MMF.
    1.30 +*/
    1.31 +enum TMMFSampleRate
    1.32 +	{
    1.33 +	EMMFSampleRate8000Hz    = 0x00000001,
    1.34 +	EMMFSampleRate11025Hz   = 0x00000002,
    1.35 +	EMMFSampleRate16000Hz   = 0x00000004,
    1.36 +	EMMFSampleRate22050Hz   = 0x00000008,
    1.37 +	EMMFSampleRate32000Hz   = 0x00000010,
    1.38 +	EMMFSampleRate44100Hz   = 0x00000020,
    1.39 +	EMMFSampleRate48000Hz   = 0x00000040,
    1.40 +	EMMFSampleRate88200Hz   = 0x00000080,
    1.41 +	EMMFSampleRate96000Hz   = 0x00000100,
    1.42 +	EMMFSampleRate12000Hz   = 0x00000200,
    1.43 +	EMMFSampleRate24000Hz   = 0x00000400
    1.44 +	};
    1.45 +
    1.46 +/**
    1.47 +* Mono / stereo supported by MMF.
    1.48 +*/
    1.49 +enum TMMFMonoStereo
    1.50 +	{
    1.51 +	EMMFMono                = 0x00000001,
    1.52 +	EMMFStereo              = 0x00000002
    1.53 +	};
    1.54 +
    1.55 +/**
    1.56 +* Sound encodings supported by MMF.
    1.57 +*/
    1.58 +enum TMMFSoundEncoding
    1.59 +	{
    1.60 +	EMMFSoundEncoding8BitPCM    = 0x00000001,
    1.61 +	EMMFSoundEncoding16BitPCM   = 0x00000002,
    1.62 +	EMMFSoundEncoding8BitALaw   = 0x00000004,
    1.63 +	EMMFSoundEncoding8BitMuLaw  = 0x00000008
    1.64 +	};
    1.65 +
    1.66 +/**
    1.67 +* Stereo types supported by MMF.
    1.68 +*/
    1.69 +enum TMMFStereoSupport
    1.70 +	{
    1.71 +	EMMFNone                    = 0x00000000,
    1.72 +	EMMFInterleavedOnly         = 0x00000001,
    1.73 +	EMMFNonInterleavedOnly      = 0x00000002,
    1.74 +	EMMFBothNonAndInterleaved   = 0x00000003
    1.75 +	};
    1.76 +
    1.77 +enum TMMFState
    1.78 +	{
    1.79 +	/** Idle state.
    1.80 +	*/
    1.81 +	EMMFStateIdle,
    1.82 +	/** The MMF is currently playing.
    1.83 +	*/
    1.84 +	EMMFStatePlaying,
    1.85 +	/** The MMF is playing a tone.
    1.86 +	*/
    1.87 +	EMMFStateTonePlaying,
    1.88 +	/** The MMF is currently playing tone.
    1.89 +	*/
    1.90 +	EMMFStateRecording,
    1.91 +	/** The MMF is playing and recording.
    1.92 +	*/
    1.93 +	EMMFStatePlayingRecording,
    1.94 +	/** The MMF is converting data.
    1.95 +	*/
    1.96 +	EMMFStateConverting
    1.97 +	};
    1.98 +
    1.99 +// Taken from dspbridge.h.
   1.100 +
   1.101 +enum TDMSConnectionType
   1.102 +	{
   1.103 +	EDMSConnectionGpp,
   1.104 +	EDMSConnectionTask,
   1.105 +	EDMSConnectionDevice
   1.106 +	};
   1.107 +
   1.108 +/**
   1.109 +* Stream Transfer type
   1.110 +* This enumeration defines the transfer modes supported:
   1.111 +* 1. Processor copy mode (ETransferCpuCopy) and
   1.112 +* 2. Single copy DSP DMA (ETransferRemoteDma)
   1.113 +* 3. Zero-Copy mode      (ETransferZeroCopy)
   1.114 +*
   1.115 +* Taken from dspbridge.h
   1.116 +*/
   1.117 +enum TDMSTransferType
   1.118 +	{
   1.119 +	ETransferTypeCpuCopy,
   1.120 +	ETransferTypeRemoteDma,
   1.121 +	ETransferTypeZeroCopy
   1.122 +	};
   1.123 +
   1.124 +enum EnableTrueOrFalse
   1.125 +	{
   1.126 +	EEnableFalse,
   1.127 +	EEnableTrue
   1.128 +	};
   1.129 +
   1.130 +#endif // RESOURCEAUDIOENUMS_HRH
   1.131 +
   1.132 +// End of File