author | William Roberts <williamr@symbian.org> |
Thu, 18 Nov 2010 15:17:29 +0000 | |
changeset 137 | 3c8fb4698aeb |
parent 129 | 4a58d534bdaa |
permissions | -rw-r--r-- |
125
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
1 |
// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
2 |
// All rights reserved. |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
3 |
// This component and the accompanying materials are made available |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
4 |
// under the terms of "Eclipse Public License v1.0" |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
5 |
// which accompanies this distribution, and is available |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
7 |
// |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
8 |
// Initial Contributors: |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
9 |
// Nokia Corporation - initial contribution. |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
10 |
// |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
11 |
// Contributors: |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
12 |
// |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
13 |
// Description: |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
14 |
// |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
15 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
16 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
17 |
#ifndef MMFCLIENTAUDIOPLAY_H |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
18 |
#define MMFCLIENTAUDIOPLAY_H |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
19 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
20 |
#include <e32std.h> |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
21 |
#include <e32base.h> |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
22 |
#include <mdaaudiosampleplayer.h> |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
125
diff
changeset
|
23 |
//#include <mmf/common/mmfcontroller.h> |
125
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
24 |
#include <mmf/server/mmffile.h> |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
25 |
#include <mmf/server/mmfdes.h> |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
125
diff
changeset
|
26 |
//#include <mmfcontrollerimplementationuids.hrh> |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
125
diff
changeset
|
27 |
//#include <mmf/common/mmfstandardcustomcommands.h> |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
125
diff
changeset
|
28 |
//#include <mmf/common/mmfdrmcustomcommands.h> |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
125
diff
changeset
|
29 |
//#include "mmfclientutility.h" |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
125
diff
changeset
|
30 |
//#include <mmf/common/mmfdurationinfocustomcommands.h> |
125
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
31 |
|
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
125
diff
changeset
|
32 |
//static const TUid KUidMmfAudioController = {KMmfUidControllerAudio}; |
125
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
33 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
34 |
/** |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
35 |
Mixin class to allow notification that the timed silence has finished. |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
36 |
*/ |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
37 |
class MRepeatTrailingSilenceTimerObs |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
38 |
{ |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
39 |
public: |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
40 |
virtual void RepeatTrailingSilenceTimerComplete() = 0; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
41 |
}; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
42 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
43 |
/** |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
44 |
CTimer-based active object that waits the requested time before notifying its observer. |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
45 |
*/ |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
46 |
class CRepeatTrailingSilenceTimer : public CTimer |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
47 |
{ |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
48 |
public: |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
49 |
static CRepeatTrailingSilenceTimer* NewL(MRepeatTrailingSilenceTimerObs& aObs); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
50 |
void RunL(); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
51 |
private: |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
52 |
CRepeatTrailingSilenceTimer(MRepeatTrailingSilenceTimerObs& aObs); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
53 |
private: |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
54 |
MRepeatTrailingSilenceTimerObs& iObs; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
55 |
}; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
56 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
57 |
/** |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
58 |
Active object utility class to allow the callback to be called asynchronously. |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
59 |
This should help prevent re-entrant code in clients of the mediaframework. |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
60 |
*/ |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
61 |
class CMMFMdaAudioPlayerCallBack : public CActive |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
62 |
{ |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
63 |
public: |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
64 |
enum TCallbackState { |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
65 |
ECallbackInitComplete, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
66 |
ECallbackPlayComplete |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
67 |
}; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
68 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
69 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
70 |
public: |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
71 |
static CMMFMdaAudioPlayerCallBack* NewL(MMdaAudioPlayerCallback& aCallback); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
72 |
~CMMFMdaAudioPlayerCallBack(); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
73 |
void InitComplete(TInt aError, const TTimeIntervalMicroSeconds& aDuration); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
74 |
void PlayComplete(TInt aError); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
75 |
private: |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
76 |
CMMFMdaAudioPlayerCallBack(MMdaAudioPlayerCallback& aCallback); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
77 |
void RunL(); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
78 |
void DoCancel(); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
79 |
private: |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
80 |
MMdaAudioPlayerCallback& iCallback; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
81 |
TInt iError; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
82 |
TTimeIntervalMicroSeconds iDuration; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
83 |
TCallbackState iState; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
84 |
}; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
85 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
86 |
/** |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
87 |
Concrete implementation of the CMdaAudioPlayerUtility API. |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
88 |
@see CMdaAudioPlayerUtility |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
89 |
*/ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
125
diff
changeset
|
90 |
/*class CMMFMdaAudioPlayerUtility; |
125
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
91 |
NONSHARABLE_CLASS( CMMFMdaAudioPlayerUtility ): public CBase, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
92 |
public MMMFControllerEventMonitorObserver, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
93 |
public MRepeatTrailingSilenceTimerObs, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
94 |
public MMMFFindAndOpenControllerObserver |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
125
diff
changeset
|
95 |
*/ |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
125
diff
changeset
|
96 |
class CMMFMdaAudioPlayerUtility; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
125
diff
changeset
|
97 |
NONSHARABLE_CLASS( CMMFMdaAudioPlayerUtility ): public CTimer |
125
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
98 |
{ |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
99 |
friend class CMdaAudioPlayerUtility; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
100 |
// friends for Unit testing only |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
101 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
102 |
public: |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
103 |
enum TMMFAudioPlayerState |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
104 |
{ |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
105 |
EStopped, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
106 |
EOpening, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
107 |
EPaused, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
108 |
EPlaying |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
109 |
}; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
110 |
public: |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
111 |
static CMMFMdaAudioPlayerUtility* NewFilePlayerL(const TDesC& aFileName, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
112 |
MMdaAudioPlayerCallback& aCallback, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
113 |
TInt aPriority = EMdaPriorityNormal, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
114 |
TInt aPref = EMdaPriorityPreferenceTimeAndQuality, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
115 |
CMdaServer* aServer = NULL); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
116 |
static CMMFMdaAudioPlayerUtility* NewDesPlayerL(const TDesC8& aData, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
117 |
MMdaAudioPlayerCallback& aCallback, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
118 |
TInt aPriority = EMdaPriorityNormal, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
119 |
TInt aPref = EMdaPriorityPreferenceTimeAndQuality, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
120 |
CMdaServer* aServer = NULL); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
121 |
static CMMFMdaAudioPlayerUtility* NewDesPlayerReadOnlyL(const TDesC8& aData, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
122 |
MMdaAudioPlayerCallback& aCallback, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
123 |
TInt aPriority = EMdaPriorityNormal, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
124 |
TInt aPref = EMdaPriorityPreferenceTimeAndQuality, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
125 |
CMdaServer* aServer = NULL); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
126 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
127 |
static CMMFMdaAudioPlayerUtility* NewL(MMdaAudioPlayerCallback& aCallback, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
128 |
TInt aPriority = EMdaPriorityNormal, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
129 |
TInt aPref = EMdaPriorityPreferenceTimeAndQuality); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
130 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
131 |
/** |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
132 |
Destructor |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
133 |
*/ |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
134 |
~CMMFMdaAudioPlayerUtility(); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
135 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
136 |
void UseSharedHeap(); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
137 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
138 |
void OpenFileL(const TDesC& aFileName); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
139 |
void OpenFileL(const RFile& aFile); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
140 |
void OpenFileL(const TMMSource& aSource); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
141 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
142 |
void OpenDesL(const TDesC8& aDescriptor); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
143 |
void OpenUrlL(const TDesC& aUrl, TInt aIapId=KUseDefaultIap, const TDesC8& aMimeType = KNullDesC8); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
144 |
void Play(); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
145 |
void Stop(); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
146 |
TInt SetVolume(TInt aVolume); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
147 |
void SetRepeats(TInt aRepeatNumberOfTimes, const TTimeIntervalMicroSeconds& aTrailingSilence); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
148 |
void SetVolumeRamp(const TTimeIntervalMicroSeconds& aRampDuration); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
149 |
const TTimeIntervalMicroSeconds& Duration(); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
150 |
TInt MaxVolume(); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
151 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
152 |
// API Additions since version 7.0 |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
153 |
TInt Pause(); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
154 |
void Close(); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
155 |
TInt GetPosition(TTimeIntervalMicroSeconds& aPosition); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
156 |
void SetPosition(const TTimeIntervalMicroSeconds& aPosition); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
157 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
158 |
TInt SetPriority(TInt aPriority, TInt aPref); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
159 |
TInt GetVolume(TInt& aVolume); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
160 |
TInt GetNumberOfMetaDataEntries(TInt& aNumEntries); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
161 |
CMMFMetaDataEntry* GetMetaDataEntryL(TInt aMetaDataIndex); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
162 |
TInt SetPlayWindow(const TTimeIntervalMicroSeconds& aStart, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
163 |
const TTimeIntervalMicroSeconds& aEnd); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
164 |
TInt ClearPlayWindow(); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
165 |
TInt SetBalance(TInt aBalance = KMMFBalanceCenter); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
166 |
TInt GetBalance(TInt& aBalance); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
167 |
TInt GetBitRate(TUint& aBitRate); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
168 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
169 |
void RegisterForAudioLoadingNotification(MAudioLoadingObserver& aCallback); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
170 |
void GetAudioLoadingProgressL(TInt& aPercentageProgress); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
171 |
const CMMFControllerImplementationInformation& ControllerImplementationInformationL(); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
172 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
173 |
TInt RegisterAudioResourceNotification(MMMFAudioResourceNotificationCallback& aCallback,TUid aNotificationEventUid,const TDesC8& aNotificationRegistrationData = KNullDesC8); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
174 |
TInt CancelRegisterAudioResourceNotification(TUid aNotificationEventId); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
175 |
TInt WillResumePlay(); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
176 |
TInt CustomCommandSync(const TMMFMessageDestinationPckg& aDestination, TInt aFunction, const TDesC8& aDataTo1, const TDesC8& aDataTo2, TDes8& aDataFrom); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
177 |
TInt CustomCommandSync(const TMMFMessageDestinationPckg& aDestination, TInt aFunction, const TDesC8& aDataTo1, const TDesC8& aDataTo2); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
178 |
void CustomCommandAsync(const TMMFMessageDestinationPckg& aDestination, TInt aFunction, const TDesC8& aDataTo1, const TDesC8& aDataTo2, TDes8& aDataFrom, TRequestStatus& aStatus); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
179 |
void CustomCommandAsync(const TMMFMessageDestinationPckg& aDestination, TInt aFunction, const TDesC8& aDataTo1, const TDesC8& aDataTo2, TRequestStatus& aStatus); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
180 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
181 |
MMMFDRMCustomCommand* GetDRMCustomCommand(); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
182 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
183 |
TInt SetThreadPriority(const TThreadPriority& aThreadPriority) const; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
184 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
185 |
TMMFDurationInfo Duration(TTimeIntervalMicroSeconds& aDuration); |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
125
diff
changeset
|
186 |
void RunL(); |
125
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
187 |
protected: |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
188 |
CMMFMdaAudioPlayerUtility(MMdaAudioPlayerCallback& aCallback, TInt aPriority, TInt aPref); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
189 |
void ConstructL(); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
190 |
void DoPlay(); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
191 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
192 |
private: |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
193 |
void PlaySilence(); |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
194 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
195 |
private: |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
196 |
// last play window command |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
197 |
enum TPlayWindowCommand |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
198 |
{ |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
199 |
ENone, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
200 |
ESet, |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
201 |
EClear |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
202 |
}; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
203 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
204 |
MMdaAudioPlayerCallback& iCallback; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
205 |
CMMFMdaAudioPlayerCallBack* iAsyncCallBack; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
206 |
MAudioLoadingObserver* iLoadingObserver; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
207 |
MMMFAudioResourceNotificationCallback* iAudioResourceNotificationCallBack; |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
125
diff
changeset
|
208 |
//RMMFController iController; |
125
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
209 |
CMMFControllerEventMonitor* iControllerEventMonitor; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
210 |
TMMFAudioPlayerState iState; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
211 |
TTimeIntervalMicroSeconds iDuration; // Needed because of api "Duration()" that returns a reference |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
212 |
TMMFPrioritySettings iPrioritySettings; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
213 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
214 |
TInt iNumberOfTimesPlayed; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
215 |
TInt iNumberOfTimesToRepeat; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
216 |
TTimeIntervalMicroSeconds iTrailingSilence; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
217 |
TTimeIntervalMicroSeconds iTrailingSilenceLeftToPlay; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
218 |
CRepeatTrailingSilenceTimer* iRepeatTrailingSilenceTimer; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
219 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
220 |
// Source and sink handle info |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
125
diff
changeset
|
221 |
//TMMFMessageDestination iSourceHandle; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
125
diff
changeset
|
222 |
//TMMFMessageDestination iSinkHandle; |
125
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
223 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
224 |
// Custom command handlers |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
125
diff
changeset
|
225 |
//RMMFAudioPlayDeviceCustomCommands iAudioPlayDeviceCommands; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
125
diff
changeset
|
226 |
//RMMFAudioPlayControllerCustomCommands iAudioPlayControllerCommands; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
125
diff
changeset
|
227 |
//RMMFResourceNotificationCustomCommands iNotificationRegistrationCommands; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
125
diff
changeset
|
228 |
//RMMFDRMCustomCommands iDRMCustomCommands; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
125
diff
changeset
|
229 |
//RMMFAudioPlayControllerSetRepeatsCustomCommands iAudioPlayControllerSetRepeatsCommands; |
125
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
230 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
231 |
// Current playback time so we can resume from where we were stopped |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
232 |
TTimeIntervalMicroSeconds iPosition; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
233 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
234 |
// Play window start and end times and whether it has been set |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
235 |
TTimeIntervalMicroSeconds iPlayStart; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
236 |
TTimeIntervalMicroSeconds iPlayEnd; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
237 |
TPlayWindowCommand iPlayWindowSet; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
238 |
RArray<TUid> iMediaIds; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
239 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
240 |
CMMFControllerImplementationInformation* iControllerImplementationInformation; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
241 |
TUid iControllerUid; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
242 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
243 |
// utility class to find and open a suitable controller asynchronously |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
125
diff
changeset
|
244 |
//CMMFFindAndOpenController* iFindAndOpenController; |
125
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
245 |
TUid iEventHolder; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
246 |
TBuf8<256> iNotificationDataHolder; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
247 |
TBool iRepeatCancelled; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
248 |
}; |
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
249 |
|
657f02e590f1
Original source files from sf/os/mm/mmlibs/mmfw, to be reworked for stem_MediaClientAudio.dll
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
250 |
#endif |