First public contribution.
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #if (!defined __TSOUNDUTIL_H__)
20 #define __TSOUNDUTIL_H__
26 #include "DataWrapperBase.h"
30 * Class that contains methods for loading and releasing sound drivers and
37 //constant definitions
38 const static TInt KAudioBufferMaxSize = 2048;
39 const static TInt KDefaultBlockSize = 8192;
42 * Class that contains methods for saving and loading audio files
45 class RAudioBuffer : public RBuf8
48 TInt SaveAudioDataL(const TDesC& aFile);
49 TInt LoadAudioDataL(const TDesC& aFile);
53 static TInt LoadSoundDrivers(const TDesC& aLdd, const TDesC& aPdd);
54 static TInt FreeSoundDrivers(const TDesC& aLdd, const TDesC& aPdd);
56 static TInt DeleteFileL(const TDesC& aFile);
60 static const CDataWrapperBase::TEnumEntryTable iEnumTableSoundEncoding[];
63 #endif /* __TSOUNDUTIL_H__ */