0
|
1 |
// Copyright (c) 2004-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 |
// This file contains testing steps for reading the bitrates of
|
|
15 |
// audio files with different formats
|
|
16 |
// Tests opening sounds of various formats
|
|
17 |
// from a file with various parameters and constructor calls
|
|
18 |
//
|
|
19 |
//
|
|
20 |
|
|
21 |
#ifndef __TEST_STEP_RECORDER_BITRATE__
|
|
22 |
#define __TEST_STEP_RECORDER_BITRATE__
|
|
23 |
|
|
24 |
#include <testframework.h>
|
|
25 |
|
|
26 |
#include "TestStepUnitMMFAudClient.h"
|
|
27 |
#include "TestSuiteUnitMMFAudClient.h"
|
|
28 |
#include "mmfclientaudiorecorder.h"
|
|
29 |
|
|
30 |
/**
|
|
31 |
*
|
|
32 |
* Read the bit rate of wav files.
|
|
33 |
*
|
|
34 |
* @lib "TSU_MMF_ACLNT_01.lib"
|
|
35 |
*
|
|
36 |
* @xxxx
|
|
37 |
*
|
|
38 |
*/
|
|
39 |
|
|
40 |
class CTestStepRecorderBitRateWav : public CTestStepUnitMMFAudClient,
|
|
41 |
public MMdaObjectStateChangeObserver
|
|
42 |
{
|
|
43 |
public:
|
|
44 |
static CTestStepRecorderBitRateWav* NewL();
|
|
45 |
CTestStepRecorderBitRateWav();
|
|
46 |
~CTestStepRecorderBitRateWav();
|
|
47 |
virtual TVerdict DoTestStepL();
|
|
48 |
|
|
49 |
// from MMdaObjectStateChangeObserver
|
|
50 |
void MoscoStateChangeEvent(CBase* /*aObject*/,
|
|
51 |
TInt /*aPreviousState*/,
|
|
52 |
TInt /*aCurrentState*/,
|
|
53 |
TInt aErrorcCode);
|
|
54 |
|
|
55 |
private:
|
|
56 |
TInt iError;
|
|
57 |
};
|
|
58 |
|
|
59 |
/**
|
|
60 |
*
|
|
61 |
* Read the bit rate of au files.
|
|
62 |
*
|
|
63 |
* @lib "TSU_MMF_ACLNT_01.lib"
|
|
64 |
*
|
|
65 |
* @xxxx
|
|
66 |
*
|
|
67 |
*/
|
|
68 |
|
|
69 |
class CTestStepRecorderBitRateAu : public CTestStepUnitMMFAudClient,
|
|
70 |
public MMdaObjectStateChangeObserver
|
|
71 |
{
|
|
72 |
public:
|
|
73 |
static CTestStepRecorderBitRateAu* NewL();
|
|
74 |
CTestStepRecorderBitRateAu();
|
|
75 |
~CTestStepRecorderBitRateAu();
|
|
76 |
virtual TVerdict DoTestStepL();
|
|
77 |
|
|
78 |
// from MMdaObjectStateChangeObserver
|
|
79 |
void MoscoStateChangeEvent(CBase* /*aObject*/,
|
|
80 |
TInt /*aPreviousState*/,
|
|
81 |
TInt /*aCurrentState*/,
|
|
82 |
TInt aErrorcCode);
|
|
83 |
|
|
84 |
private:
|
|
85 |
TInt iError;
|
|
86 |
};
|
|
87 |
|
|
88 |
#endif //(__TEST_STEP_RECORDER_BITRATE__)
|