os/mm/devsound/devsoundrefplugin/src/plugin/audio/MMFAudioCodec.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // MMFAudioCodecBase.h
    15 // 
    16 //
    17 
    18 
    19 #ifndef __MMF_AUDIOCODEC_BASE_H__
    20 #define __MMF_AUDIOCODEC_BASE_H__
    21 #include <e32std.h>
    22 
    23 /*
    24 *
    25 * class TMmfAudioAudioCodecPanics provides a name space for audio codec
    26 * panics
    27 *
    28 **/
    29 class TMmfAudioCodecPanicsNameSpace
    30 {
    31 public:
    32 	/*
    33 	 A list of panic codes for Codecs
    34 	@internalTechnology
    35 	 EBadArgument indicates a bad argument
    36 	 EBadState indicates a state viaolation
    37 	 EBadInvariant indicates an invariant violation
    38 	 EPostConditionViolation indicates a post condition violation
    39 	*/
    40 	enum TMmfAudioCodecPanics
    41 		{
    42 		EBadArgument,
    43 		EBadState,
    44 		EBadInvariant,
    45 		EBadReset,
    46 		EPostConditionViolation
    47 		};
    48 public:
    49 	inline static void Panic(const TMmfAudioCodecPanicsNameSpace::TMmfAudioCodecPanics aPanic);
    50 };
    51 
    52 /*
    53 *
    54 * Panic
    55 * @param aPanic is the panic code for the codec
    56 *
    57 */
    58 inline void TMmfAudioCodecPanicsNameSpace::Panic(const TMmfAudioCodecPanicsNameSpace::TMmfAudioCodecPanics aPanic)
    59 	{
    60 	_LIT(KAudioCodecPanicCategory, "AudioCodec");
    61 	User::Panic(KAudioCodecPanicCategory, aPanic);
    62 	}
    63 
    64 #endif //__MMF_AUDIOCODEC_BASE_H__