diff -r 951a5db380a0 -r e0b5df5c0969 videoeditorengine/audioeditorengine/codecs/WAV/inc/ProcWAVInFileHandler.h --- a/videoeditorengine/audioeditorengine/codecs/WAV/inc/ProcWAVInFileHandler.h Fri Jan 29 14:08:33 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,108 +0,0 @@ -/* -* Copyright (c) 2010 Ixonos Plc. -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of the "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - Initial contribution -* -* Contributors: -* Ixonos Plc -* -* Description: -* -*/ - - -#ifndef __CPROCWAVINFILEHANDLER_H__ -#define __CPROCWAVINFILEHANDLER_H__ - -#include -#include -#include "AudCommon.h" -#include "ProcConstants.h" -#include "ProcInFileHandler.h" -#include "ProcDecoder.h" - - -class CProcWAVInFileHandler: public CProcInFileHandler - { - -public: - - - /* - * Constructors & destructor - * - */ - - static CProcWAVInFileHandler* NewL(const TDesC& aFileName, RFile* aFileHandle, - CAudClip* aClip, TInt aReadBufferSize, - TInt aTargetSampleRate = 0, - TChannelMode aChannelMode = EAudSingleChannel); - static CProcWAVInFileHandler* NewLC(const TDesC& aFileName, RFile* aFileHandle, - CAudClip* aClip, TInt aReadBufferSize, - TInt aTargetSampleRate = 0, - TChannelMode aChannelMode = EAudSingleChannel); - virtual ~CProcWAVInFileHandler(); - - // From base class ------------------> - - void GetPropertiesL(TAudFileProperties* aProperties); - - /** - * Seeks a certain audio frame for reading - * - * Possible leave codes: - * - * @param aFrameIndex frame index - * @param aTime time from the beginning of file in milliseconds - * - * @return ETrue if successful - * EFalse if beyond the file - */ - TBool SeekAudioFrame(TInt32 aTime); - - - /** - * Seeks a cut in audio frame for reading - * - * Possible leave codes: - * - * - * @return ETrue if successful - * - */ - TBool SeekCutInFrame(); - - - virtual TBool SetNormalizingGainL(const CProcFrameHandler* aFrameHandler); - - // <-------------------------- From base class - -private: - - // number of samples in a frame - TInt iNumberofSamplesInFrame; - -private: - - // constructL - void ConstructL(const TDesC& aFileName, RFile* aFileHandle, CAudClip* aClip, - TInt aReadBufferSize, TInt aTargetSampleRate = 0, - TChannelMode aChannelMode = EAudSingleChannel); - - TBool GetEncAudioFrameL(HBufC8*& aFrame, TInt& aSize, TInt32& aTime); - - // c++ constructor - CProcWAVInFileHandler(); - -private: - - - }; - -#endif