--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mmlibs/mmfw/tsrc/mmfunittest/aclnt/TSU_MMF_ACLNT_01/TestStepPlayerBitRate.h Thu Oct 07 22:34:12 2010 +0100
@@ -0,0 +1,87 @@
+// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "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:
+//
+// Description:
+// This file contains testing steps for reading the bitrates of
+// audio files with different formats
+// Tests opening sounds of various formats
+// from a file with various parameters and constructor calls
+//
+//
+
+#ifndef __TEST_STEP_PLAYER_BITRATE__
+#define __TEST_STEP_PLAYER_BITRATE__
+
+#include <testframework.h>
+
+#include "TestStepUnitMMFAudClient.h"
+#include "TestSuiteUnitMMFAudClient.h"
+#include "mmfclientaudioplayer.h"
+
+/**
+ *
+ * Read the bit rate of wav files.
+ *
+ * @lib "TSU_MMF_ACLNT_01.lib"
+ *
+ * @xxxx
+ *
+ */
+
+class CTestStepPlayerBitRateWav : public CTestStepUnitMMFAudClient,
+ public MMdaAudioPlayerCallback
+ {
+public:
+ static CTestStepPlayerBitRateWav* NewL();
+ CTestStepPlayerBitRateWav();
+ ~CTestStepPlayerBitRateWav();
+ virtual TVerdict DoTestStepL();
+
+ // from MMdaAudioPlayerCallback
+ virtual void MapcInitComplete(TInt aError,
+ const TTimeIntervalMicroSeconds& aDuration);
+ virtual void MapcPlayComplete(TInt aError);
+
+private:
+ TInt iError;
+ };
+
+/**
+ *
+ * Read the bit rate of AU files.
+ *
+ * @lib "TSU_MMF_ACLNT_01.lib"
+ *
+ * @xxxx
+ *
+ */
+
+class CTestStepPlayerBitRateAU : public CTestStepUnitMMFAudClient,
+ public MMdaAudioPlayerCallback
+ {
+public:
+ static CTestStepPlayerBitRateAU* NewL();
+ CTestStepPlayerBitRateAU();
+ ~CTestStepPlayerBitRateAU();
+ virtual TVerdict DoTestStepL();
+
+ // from MMdaAudioPlayerCallback
+ virtual void MapcInitComplete(TInt aError,
+ const TTimeIntervalMicroSeconds& aDuration);
+ virtual void MapcPlayComplete(TInt aError);
+
+private:
+ TInt iError;
+ };
+
+#endif //(__TEST_STEP_PLAYER_BITRATE__)
+