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_PLAYER_BITRATE__
|
|
22 |
#define __TEST_STEP_PLAYER_BITRATE__
|
|
23 |
|
|
24 |
#include <testframework.h>
|
|
25 |
|
|
26 |
#include "TestStepUnitMMFAudClient.h"
|
|
27 |
#include "TestSuiteUnitMMFAudClient.h"
|
|
28 |
#include "mmfclientaudioplayer.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 CTestStepPlayerBitRateWav : public CTestStepUnitMMFAudClient,
|
|
41 |
public MMdaAudioPlayerCallback
|
|
42 |
{
|
|
43 |
public:
|
|
44 |
static CTestStepPlayerBitRateWav* NewL();
|
|
45 |
CTestStepPlayerBitRateWav();
|
|
46 |
~CTestStepPlayerBitRateWav();
|
|
47 |
virtual TVerdict DoTestStepL();
|
|
48 |
|
|
49 |
// from MMdaAudioPlayerCallback
|
|
50 |
virtual void MapcInitComplete(TInt aError,
|
|
51 |
const TTimeIntervalMicroSeconds& aDuration);
|
|
52 |
virtual void MapcPlayComplete(TInt aError);
|
|
53 |
|
|
54 |
private:
|
|
55 |
TInt iError;
|
|
56 |
};
|
|
57 |
|
|
58 |
/**
|
|
59 |
*
|
|
60 |
* Read the bit rate of AU files.
|
|
61 |
*
|
|
62 |
* @lib "TSU_MMF_ACLNT_01.lib"
|
|
63 |
*
|
|
64 |
* @xxxx
|
|
65 |
*
|
|
66 |
*/
|
|
67 |
|
|
68 |
class CTestStepPlayerBitRateAU : public CTestStepUnitMMFAudClient,
|
|
69 |
public MMdaAudioPlayerCallback
|
|
70 |
{
|
|
71 |
public:
|
|
72 |
static CTestStepPlayerBitRateAU* NewL();
|
|
73 |
CTestStepPlayerBitRateAU();
|
|
74 |
~CTestStepPlayerBitRateAU();
|
|
75 |
virtual TVerdict DoTestStepL();
|
|
76 |
|
|
77 |
// from MMdaAudioPlayerCallback
|
|
78 |
virtual void MapcInitComplete(TInt aError,
|
|
79 |
const TTimeIntervalMicroSeconds& aDuration);
|
|
80 |
virtual void MapcPlayComplete(TInt aError);
|
|
81 |
|
|
82 |
private:
|
|
83 |
TInt iError;
|
|
84 |
};
|
|
85 |
|
|
86 |
#endif //(__TEST_STEP_PLAYER_BITRATE__)
|
|
87 |
|