haitest/bspsvs/suite/bsp/sound/inc/sound_util.h
changeset 0 cec860690d41
equal deleted inserted replaced
-1:000000000000 0:cec860690d41
       
     1 /*
       
     2 * Copyright (c) 2005-2009 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 
       
    19 #if (!defined __TSOUNDUTIL_H__)
       
    20 #define __TSOUNDUTIL_H__
       
    21 
       
    22 //	EPOC Includes
       
    23 #include <mdasound.h>
       
    24 
       
    25 //	User Includes
       
    26 #include "DataWrapperBase.h"
       
    27 
       
    28 
       
    29 /**
       
    30  * Class that contains methods for loading and releasing sound drivers and 
       
    31  * default constants
       
    32  *
       
    33  */
       
    34 class TSoundUtil
       
    35 	{
       
    36 public:
       
    37 	//constant definitions
       
    38 	const static TInt KAudioBufferMaxSize	=	2048;
       
    39 	const static TInt KDefaultBlockSize		=	8192;
       
    40 
       
    41 	/**
       
    42 	 * Class that contains methods for saving and loading audio files
       
    43 	 *
       
    44 	 */
       
    45 	class RAudioBuffer : public RBuf8
       
    46 		{
       
    47 	public:
       
    48 		TInt SaveAudioDataL(const TDesC& aFile);
       
    49 		TInt LoadAudioDataL(const TDesC& aFile);
       
    50 		};
       
    51 		
       
    52 public:
       
    53 	static TInt		LoadSoundDrivers(const TDesC& aLdd, const TDesC& aPdd);
       
    54 	static TInt		FreeSoundDrivers(const TDesC& aLdd, const TDesC& aPdd);
       
    55 	
       
    56 	static TInt		DeleteFileL(const TDesC& aFile);
       
    57 	
       
    58 public:
       
    59 	
       
    60 	static const CDataWrapperBase::TEnumEntryTable iEnumTableSoundEncoding[];
       
    61 	};
       
    62 
       
    63 #endif /* __TSOUNDUTIL_H__ */