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 |
#include <bautils.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
|
17 |
#include <utf.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 |
#include <mmf/common/mmfpaniccodes.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 |
#include "mmfclientaudioplayer.h" |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
20 |
//#include "mmfclientutility.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
|
21 |
#ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
22 |
//#include <mmf/common/mmfdurationinfocustomcommandsimpl.h> |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
23 |
//#include <mmf/common/mmfdurationinfocustomcommandsenums.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 |
#endif |
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 |
|
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
|
26 |
using namespace ContentAccess; |
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
|
27 |
|
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
|
28 |
// declared in the recorder module |
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
|
29 |
void Panic(TInt aPanicCode); |
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
|
30 |
|
126
faed561c44ed
stem_MediaClientAudio.dll - work in progress
William Roberts <williamr@symbian.org>
parents:
125
diff
changeset
|
31 |
void TMMFMessage::Complete(TInt aReason) |
faed561c44ed
stem_MediaClientAudio.dll - work in progress
William Roberts <williamr@symbian.org>
parents:
125
diff
changeset
|
32 |
{ |
faed561c44ed
stem_MediaClientAudio.dll - work in progress
William Roberts <williamr@symbian.org>
parents:
125
diff
changeset
|
33 |
iMessage.Complete(aReason); |
faed561c44ed
stem_MediaClientAudio.dll - work in progress
William Roberts <williamr@symbian.org>
parents:
125
diff
changeset
|
34 |
iAmCompleted = ETrue; |
faed561c44ed
stem_MediaClientAudio.dll - work in progress
William Roberts <williamr@symbian.org>
parents:
125
diff
changeset
|
35 |
} |
faed561c44ed
stem_MediaClientAudio.dll - work in progress
William Roberts <williamr@symbian.org>
parents:
125
diff
changeset
|
36 |
|
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
|
37 |
/** |
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 |
Constructs and initialises a new instance of the audio player utility. |
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 |
|
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 |
The function leaves if the audio player utility object cannot be created. |
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 |
No callback notification is made upon completion of NewL(). |
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 |
@param 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
|
45 |
The audio player observer interface. |
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 |
@param aPriority |
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 |
The Priority Value - this client's relative priority. This is a value between EMdaPriorityMin and |
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 |
EMdaPriorityMax and represents a relative priority. A higher value indicates a more important request. |
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 |
@param 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
|
50 |
The Priority Preference - an additional audio policy parameter. The suggested default is |
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 |
EMdaPriorityPreferenceNone. Further values are given by TMdaPriorityPreference, and additional |
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 |
values may be supported by given phones and/or platforms, but should not be depended upon by |
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 |
portable code. |
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 |
|
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 |
@return A pointer to the new audio player utility object. |
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 |
Note: The Priority Value and Priority Preference are used primarily when deciding what to do when |
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 |
several audio clients attempt to play or record simultaneously. In addition to the Priority Value and Preference, |
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 |
the adaptation may consider other parameters such as the SecureId and Capabilities of the client process. |
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 |
Whatever, the decision as to what to do in such situations is up to the audio adaptation, and may |
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 |
vary between different phones. Portable applications are advised not to assume any specific behaviour. |
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 |
EXPORT_C CMdaAudioPlayerUtility* CMdaAudioPlayerUtility::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
|
64 |
TInt aPriority, |
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 |
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
|
66 |
{ |
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 |
CMdaAudioPlayerUtility* self = new(ELeave) 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
|
68 |
CleanupStack::PushL(self); |
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 |
self->iProperties = CMMFMdaAudioPlayerUtility::NewL(aCallback, aPriority, 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
|
70 |
CleanupStack::Pop(self); |
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 |
return self; |
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 |
} |
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 |
|
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 |
/** |
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 |
Constructs and initialises a new instance of the audio player utility for playing sampled audio data |
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 |
from a file. The audio data must be in a supported format (e.g. WAV and AU). |
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 |
|
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 |
The function leaves if the audio player utility object cannot be created. |
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 |
|
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 |
When initialisation of the audio player utility is complete, successfully or otherwise, the callback |
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 |
function MMdaAudioPlayerCallback::MapcInitComplete() is called. |
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 |
|
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 |
@param 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
|
84 |
The full path name of the file containing the audio data. |
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 |
@param 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
|
86 |
The audio player observer interface. |
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 |
@param aPriority |
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 |
The Priority Value - this client's relative priority. This is a value between EMdaPriorityMin and |
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 |
EMdaPriorityMax and represents a relative priority. A higher value indicates a more important request. |
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
|
90 |
@param 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
|
91 |
The Priority Preference - an additional audio policy parameter. The suggested default is |
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 |
EMdaPriorityPreferenceNone. Further values are given by TMdaPriorityPreference, and additional |
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 |
values may be supported by given phones and/or platforms, but should not be depended upon by |
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 |
portable code. |
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
|
95 |
@param aServer |
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
|
96 |
Not used in 7.0s. This parameter is provided for binary compatibility with previous versions. |
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
|
97 |
|
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 |
@return A pointer to the new audio player utility object. |
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 |
|
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 |
Note: The Priority Value and Priority Preference are used primarily when deciding what to do when |
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 |
several audio clients attempt to play or record simultaneously. In addition to the Priority Value and Preference, |
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 |
the adaptation may consider other parameters such as the SecureId and Capabilities of the client process. |
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 |
Whatever, the decision as to what to do in such situations is up to the audio adaptation, and may |
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 |
vary between different phones. Portable applications are advised not to assume any specific behaviour. |
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 |
*/ |
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 |
EXPORT_C CMdaAudioPlayerUtility* CMdaAudioPlayerUtility::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
|
107 |
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
|
108 |
TInt aPriority, |
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 |
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
|
110 |
CMdaServer* /*aServer*/) |
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 |
{ |
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 |
CMdaAudioPlayerUtility* self = new(ELeave) 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
|
113 |
CleanupStack::PushL(self); |
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 |
self->iProperties = CMMFMdaAudioPlayerUtility::NewFilePlayerL(aFileName, aCallback, aPriority, 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
|
115 |
CleanupStack::Pop(self); |
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 |
return self; |
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 |
} |
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 |
|
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 |
/** |
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 |
Constructs and initialises a new instance of the audio player utility for playing sampled audio data |
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 |
from a descriptor. |
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 |
|
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 |
The audio data must be in a supported format (e.g. WAV and AU). |
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 |
|
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 |
The function leaves if the audio player utility object cannot be created. When initialisation of the |
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 |
audio player utility is complete, successfully or otherwise, the callback function |
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 |
MMdaAudioPlayerCallback::MapcInitComplete() is called. |
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 |
|
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 |
@param 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
|
130 |
A descriptor containing the audio data. This descriptor must remain in existence for the |
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 |
lifetime of this audio player utility object. |
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 |
@param 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
|
133 |
The audio player observer interface. |
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 |
@param aPriority |
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 |
The Priority Value - this client's relative priority. This is a value between EMdaPriorityMin and |
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 |
EMdaPriorityMax and represents a relative priority. A higher value indicates a more important request. |
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 |
@param 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
|
138 |
The Priority Preference - an additional audio policy parameter. The suggested default is |
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 |
EMdaPriorityPreferenceNone. Further values are given by TMdaPriorityPreference, and additional |
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 |
values may be supported by given phones and/or platforms, but should not be depended upon by |
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 |
portable code. |
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 |
@param aServer |
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 |
Not used in 7.0s. This parameter is provided for binary compatibility with previous versions. |
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 |
|
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 |
@return A pointer to the new audio player utility object. |
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 |
|
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 |
Note: The Priority Value and Priority Preference are used primarily when deciding what to do when |
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 |
several audio clients attempt to play or record simultaneously. In addition to the Priority Value and Preference, |
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 |
the adaptation may consider other parameters such as the SecureId and Capabilities of the client process. |
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 |
Whatever, the decision as to what to do in such situations is up to the audio adaptation, and may |
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 |
vary between different phones. Portable applications are advised not to assume any specific behaviour. |
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 |
*/ |
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 |
EXPORT_C CMdaAudioPlayerUtility* CMdaAudioPlayerUtility::NewDesPlayerL(const TDesC8& aData, MMdaAudioPlayerCallback& aCallback, TInt aPriority, TInt aPref, CMdaServer* /*aServer*/) |
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 |
{ |
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 |
CMdaAudioPlayerUtility* self = new(ELeave) 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
|
156 |
CleanupStack::PushL(self); |
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 |
self->iProperties = CMMFMdaAudioPlayerUtility::NewDesPlayerL(aData, aCallback, aPriority, 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
|
158 |
CleanupStack::Pop(self); |
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 |
return self; |
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 |
} |
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 |
|
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 |
/** |
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 |
Constructs and initialises a new instance of the audio player utility for playing sampled audio data |
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 |
from a read only descriptor. |
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 |
|
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 |
The audio data must be in a supported format (e.g. WAV and AU). |
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 |
|
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 |
The function leaves if the audio player utility object cannot be created. When initialisation of |
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 |
the audio player utility is complete, successfully or otherwise, the callback function |
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 |
MMdaAudioPlayerCallback::MapcInitComplete() is called. |
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 |
|
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 |
@param 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
|
173 |
A read only descriptor containing the audio data. This descriptor must remain in existence |
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 |
for the lifetime of this audio player utility object. |
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 |
@param 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
|
176 |
The audio player observer interface. |
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 |
@param aPriority |
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 |
The Priority Value - this client's relative priority. This is a value between EMdaPriorityMin and |
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 |
EMdaPriorityMax and represents a relative priority. A higher value indicates a more important request. |
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 |
@param 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
|
181 |
The Priority Preference - an additional audio policy parameter. The suggested default is |
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 |
EMdaPriorityPreferenceNone. Further values are given by TMdaPriorityPreference, and additional |
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 |
values may be supported by given phones and/or platforms, but should not be depended upon by |
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 |
portable code. |
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 |
@param aServer |
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
|
186 |
Not used in 7.0s. This parameter is provided for binary compatibility with previous versions. |
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 |
|
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 |
@return A pointer to a new audio player utility. |
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 |
|
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 |
Note: The Priority Value and Priority Preference are used primarily when deciding what to do when |
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 |
several audio clients attempt to play or record simultaneously. In addition to the Priority Value and Preference, |
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 |
the adaptation may consider other parameters such as the SecureId and Capabilities of the client process. |
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 |
Whatever, the decision as to what to do in such situations is up to the audio adaptation, and may |
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 |
vary between different phones. Portable applications are advised not to assume any specific behaviour. |
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 |
*/ |
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 |
EXPORT_C CMdaAudioPlayerUtility* CMdaAudioPlayerUtility::NewDesPlayerReadOnlyL(const TDesC8& aData, MMdaAudioPlayerCallback& aCallback, TInt aPriority, TInt aPref, CMdaServer* /*aServer*/) |
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 |
{ |
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 |
CMdaAudioPlayerUtility* self = new(ELeave) 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
|
199 |
CleanupStack::PushL(self); |
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 |
self->iProperties = CMMFMdaAudioPlayerUtility::NewDesPlayerReadOnlyL(aData, aCallback, aPriority, 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
|
201 |
CleanupStack::Pop(self); |
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 |
return self; |
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 |
|
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 |
CMdaAudioPlayerUtility::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
|
206 |
{ |
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 |
} |
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
|
208 |
|
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 |
/** |
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 |
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
|
211 |
|
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 |
Frees all resources owned by the object prior to its destruction. |
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 |
CMdaAudioPlayerUtility::~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
|
215 |
{ |
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 |
delete iProperties; |
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 |
} |
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 |
|
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 |
Ensures that any subsequent calls to OpenXYZ() will create controllers that |
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
|
221 |
share a heap. |
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
|
222 |
|
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 |
The default behaviour is that for each player utility a controller with its own heap |
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 |
is created. Each heap uses a chunk, so using this function avoids situations where |
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
|
225 |
the number of chunks per process is limited. |
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
|
226 |
The default behaviour is generally to be preferred, and should give lower overall |
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
|
227 |
memory usage. However, if many controllers are to be created for a particular thread, |
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
|
228 |
then this function should be used to prevent running out of heaps or chunks. |
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
|
229 |
|
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 |
@since 9.1 |
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 |
*/ |
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 |
EXPORT_C void CMdaAudioPlayerUtility::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
|
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 |
ASSERT(iProperties); |
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 |
iProperties->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
|
236 |
} |
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 |
|
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 |
// 5.0 functions |
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 |
/** |
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 |
Begins playback of audio sample data at the current playback position using the current volume, |
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 |
gain and priority settings. |
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 |
|
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
|
244 |
When playing of the audio sample is complete, successfully or |
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 |
otherwise, the callback function |
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 |
MMdaAudioPlayerCallback::MapcPlayComplete() is |
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 |
called. |
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 |
If this function is called whilst already playing then |
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 |
MMdaAudioPlayerCallback::MapcPlayComplete will return with the |
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
|
251 |
error code KErrNotReady. |
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
|
252 |
|
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
|
253 |
@since 5.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
|
254 |
*/ |
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
|
255 |
void CMdaAudioPlayerUtility::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
|
256 |
{ |
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
|
257 |
ASSERT(iProperties); |
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
|
258 |
iProperties->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
|
259 |
} |
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
|
260 |
|
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
|
261 |
/** |
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
|
262 |
Stops playback of the audio sample as soon as possible. |
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
|
263 |
|
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
|
264 |
If the audio sample is playing, playback is stopped as soon as |
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
|
265 |
possible. If playback is already complete, nothing further happens as |
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
|
266 |
a result of calling this function. The callback function |
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
|
267 |
MMdaAudioPlayerCallback::MapcPlayComplete() is not |
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
|
268 |
called. |
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
|
269 |
|
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
|
270 |
@since 5.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
|
271 |
*/ |
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
|
272 |
void CMdaAudioPlayerUtility::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
|
273 |
{ |
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
|
274 |
ASSERT(iProperties); |
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
|
275 |
iProperties->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
|
276 |
} |
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
|
277 |
|
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
|
278 |
|
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
|
279 |
/** |
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
|
280 |
Changes the current playback volume to a specified value. |
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
|
281 |
|
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
|
282 |
The volume can be changed before or during playback and is effective |
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
|
283 |
immediately. The volume can be set to any value between zero (mute) and |
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
|
284 |
the maximum permissible volume (determined using 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
|
285 |
|
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
|
286 |
@param 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
|
287 |
The volume setting. This can be any value from zero to |
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
|
288 |
the value returned by a call to |
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
|
289 |
CMdaAudioPlayerUtility::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
|
290 |
Setting a zero value mutes the sound. Setting the maximum |
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
|
291 |
value results in the loudest possible sound. Values less |
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
|
292 |
than zero would be set to zero and the values greater than |
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
|
293 |
the maximum permitted volume would be set to the maximum volume. |
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
|
294 |
@return An error code indicating if the function call was successful. KErrNone on success, |
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
|
295 |
otherwise another of the system-wide error codes. |
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
|
296 |
@panic EMMFMediaClientBadArgument is raised when the audio player utility is not initialised. |
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
|
297 |
|
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
|
298 |
@since 5.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
|
299 |
*/ |
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
|
300 |
TInt CMdaAudioPlayerUtility::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
|
301 |
{ |
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
|
302 |
ASSERT(iProperties); |
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
|
303 |
return iProperties->SetVolume(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
|
304 |
} |
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
|
305 |
|
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
|
306 |
/** |
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
|
307 |
Sets the number of times the audio sample is to be repeated during the |
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
|
308 |
playback operation. |
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
|
309 |
|
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
|
310 |
A period of silence can follow each playing of the sample. The audio |
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
|
311 |
sample can be repeated indefinitely. |
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
|
312 |
|
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
|
313 |
@param aRepeatNumberOfTimes |
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
|
314 |
The number of times the audio sample, together with |
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
|
315 |
the trailing silence, is to be repeated. If this is |
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
|
316 |
set to KMdaRepeatForever, then the audio |
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
|
317 |
sample, together with the trailing silence, is |
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
|
318 |
repeated indefinitely or until Stop() is |
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
|
319 |
called. If this is set to zero, then the audio sample |
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
|
320 |
is not repeated. |
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
|
321 |
@param 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
|
322 |
The time interval of the trailing silence in microseconds. |
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
|
323 |
|
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
|
324 |
@since 5.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
|
325 |
*/ |
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
|
326 |
void CMdaAudioPlayerUtility::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
|
327 |
{ |
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
|
328 |
ASSERT(iProperties); |
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
|
329 |
iProperties->SetRepeats(aRepeatNumberOfTimes, 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
|
330 |
} |
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
|
331 |
|
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
|
332 |
/** |
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
|
333 |
Defines the period over which the volume level is to rise smoothly |
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
|
334 |
from nothing to the normal volume level. |
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
|
335 |
|
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
|
336 |
@param 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
|
337 |
The period over which the volume is to rise. A zero |
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
|
338 |
value causes the audio sample to be played at the |
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
|
339 |
normal level for the full duration of the playback. A |
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
|
340 |
value which is longer than the duration of the audio |
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
|
341 |
sample means that the sample never reaches its normal |
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
|
342 |
volume level. |
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
|
343 |
|
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
|
344 |
@since 5.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
|
345 |
*/ |
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
|
346 |
void CMdaAudioPlayerUtility::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
|
347 |
{ |
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
|
348 |
ASSERT(iProperties); |
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
|
349 |
iProperties->SetVolumeRamp(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
|
350 |
} |
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
|
351 |
|
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
|
352 |
/** |
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
|
353 |
Returns the duration of the audio sample in microseconds. |
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
|
354 |
|
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
|
355 |
@return The duration of the sample in microseconds. |
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
|
356 |
|
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
|
357 |
@since 5.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
|
358 |
*/ |
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
|
359 |
const TTimeIntervalMicroSeconds& CMdaAudioPlayerUtility::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
|
360 |
{ |
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
|
361 |
ASSERT(iProperties); |
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
|
362 |
return iProperties->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
|
363 |
} |
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
|
364 |
|
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
|
365 |
/** |
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
|
366 |
Returns the duration of the audio sample in microseconds, and the duration state. |
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
|
367 |
|
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
|
368 |
@param 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
|
369 |
The duration of the sample in microseconds. |
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
|
370 |
@return The duration state |
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
|
371 |
|
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
|
372 |
@since 9.1 |
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
|
373 |
*/ |
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
|
374 |
EXPORT_C TMMFDurationInfo CMdaAudioPlayerUtility::Duration(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
|
375 |
{ |
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
|
376 |
ASSERT(iProperties); |
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
|
377 |
return iProperties->Duration(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
|
378 |
} |
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
|
379 |
|
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
|
380 |
/** |
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
|
381 |
Returns an integer representing the maximum volume. |
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
|
382 |
|
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
|
383 |
This is the maximum value which can be passed to |
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
|
384 |
CMdaAudioPlayerUtility::SetVolume(). This value is platform |
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
|
385 |
independent, but is always greater than or equal to one. |
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
|
386 |
|
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
|
387 |
@return The maximum volume setting. |
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
|
388 |
@panic EMMFMediaClientPanicServerCommunicationProblem is raised when the audio player utility is not initialised. |
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
|
389 |
|
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
|
390 |
@since 5.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
|
391 |
*/ |
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
|
392 |
TInt CMdaAudioPlayerUtility::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
|
393 |
{ |
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
|
394 |
ASSERT(iProperties); |
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
|
395 |
return iProperties->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
|
396 |
} |
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
|
397 |
|
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
|
398 |
// 7.0s functions |
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
|
399 |
|
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
|
400 |
/** |
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
|
401 |
Opens an audio clip from a file. |
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
|
402 |
|
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
|
403 |
The audio data must be in a supported format (for example, WAV or AU). |
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
|
404 |
|
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
|
405 |
This function leaves with KErrNotReady if there is a previous open statement awaiting notification of completion. |
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
|
406 |
|
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
|
407 |
@param 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
|
408 |
The file to open. |
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
|
409 |
@leave KErrNotReady |
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
|
410 |
If a previous open statement is awaiting notification of completion. |
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
|
411 |
opening the file |
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
|
412 |
@since 7.0s |
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
|
413 |
*/ |
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
|
414 |
EXPORT_C void CMdaAudioPlayerUtility::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
|
415 |
{ |
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
|
416 |
ASSERT(iProperties); |
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
|
417 |
iProperties->OpenFileL(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
|
418 |
} |
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
|
419 |
|
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
|
420 |
/** |
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
|
421 |
Opens an audio clip from a file. |
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
|
422 |
|
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
|
423 |
The audio data must be in a supported format (for example, WAV or AU). |
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
|
424 |
|
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
|
425 |
This function leaves with KErrNotReady if there is a previous open statement awaiting notification of completion. |
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
|
426 |
|
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
|
427 |
Note: it is generally advisable that the RFile is shared through the call RFs::ShareProtected(). |
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
|
428 |
This allows the adaptation to pass it to another process, if that is required. This is particularly |
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
|
429 |
true of playing DRM encrypted files. |
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
|
430 |
|
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
|
431 |
@param 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
|
432 |
The open shared session file handle to use |
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
|
433 |
@leave KErrBadHandle |
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
|
434 |
If the file handle is not shared through the call RFs::ShareProtected(), and the adaptation needs it to be. |
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
|
435 |
@leave KErrNotReady |
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
|
436 |
If a previous open statement is awaiting notification of completion. |
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
|
437 |
opening the file |
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
|
438 |
*/ |
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
|
439 |
EXPORT_C void CMdaAudioPlayerUtility::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
|
440 |
{ |
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
|
441 |
ASSERT(iProperties); |
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
|
442 |
RFile& file = const_cast<RFile&>(aFile); |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
443 |
//TMMFileHandleSource tfs(file, KDefaultContentObject, EPlay); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
444 |
TMMFileHandleSource * tfs; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
445 |
iProperties->OpenFileL(*tfs); |
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
|
446 |
} |
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
|
447 |
|
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
|
448 |
/** |
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
|
449 |
Opens an audio clip from a file. |
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
|
450 |
|
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
|
451 |
The audio data must be in a supported format (for example, WAV or AU). |
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
|
452 |
|
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
|
453 |
This function leaves with KErrNotReady if there is a previous open statement awaiting notification of completion. |
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
|
454 |
|
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
|
455 |
@param 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
|
456 |
The file to open or an open file handle to use |
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
|
457 |
@leave KErrNotReady |
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
|
458 |
If a previous open statement is awaiting notification of completion. |
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
|
459 |
opening the file |
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
|
460 |
*/ |
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
|
461 |
EXPORT_C void CMdaAudioPlayerUtility::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
|
462 |
{ |
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
|
463 |
ASSERT(iProperties); |
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
|
464 |
iProperties->OpenFileL(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
|
465 |
} |
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
|
466 |
|
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
|
467 |
/** |
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
|
468 |
Opens an audio clip from a descriptor. |
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
|
469 |
|
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
|
470 |
The audio data must be in a supported format (for example, WAV or AU). |
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
|
471 |
|
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
|
472 |
@param 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
|
473 |
A descriptor containing the audio clip. |
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
|
474 |
@leave KErrInUse |
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
|
475 |
If a previous open statement is awaiting notification of completion. |
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
|
476 |
|
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
|
477 |
@since 7.0s |
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
|
478 |
*/ |
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
|
479 |
EXPORT_C void CMdaAudioPlayerUtility::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
|
480 |
{ |
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
|
481 |
ASSERT(iProperties); |
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
|
482 |
iProperties->OpenDesL(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
|
483 |
} |
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
|
484 |
|
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
|
485 |
/** |
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
|
486 |
Opens an audio clip from a URL. |
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
|
487 |
|
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
|
488 |
The audio data must be in a supported format (for example, WAV or AU). |
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
|
489 |
|
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
|
490 |
@param aUrl |
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
|
491 |
The URL to open. |
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
|
492 |
@param aIapId |
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
|
493 |
Internet access point(IAP) ID to use. KUseDefaultIap selects the default IAP. |
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
|
494 |
@param aMimeType |
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
|
495 |
MIME type of the URL source. |
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
|
496 |
|
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
|
497 |
@leave KErrInUse |
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
|
498 |
If a previous open statement is awaiting notification of completion. |
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
|
499 |
|
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
|
500 |
@since 7.0s |
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
|
501 |
*/ |
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
|
502 |
EXPORT_C void CMdaAudioPlayerUtility::OpenUrlL(const TDesC& aUrl, const 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
|
503 |
{ |
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
|
504 |
ASSERT(iProperties); |
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
|
505 |
iProperties->OpenUrlL(aUrl, aIapId, aMimeType); |
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
|
506 |
} |
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
|
507 |
|
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
|
508 |
/** |
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
|
509 |
Pauses the playback of the audio clip. |
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
|
510 |
|
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
|
511 |
@return An error code indicating if the function call was successful. KErrNone on success, otherwise |
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
|
512 |
another of the system-wide error codes. |
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
|
513 |
|
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
|
514 |
@since 7.0s |
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
|
515 |
*/ |
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
|
516 |
EXPORT_C TInt CMdaAudioPlayerUtility::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
|
517 |
{ |
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
|
518 |
ASSERT(iProperties); |
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
|
519 |
return iProperties->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
|
520 |
} |
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
|
521 |
|
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
|
522 |
/** |
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
|
523 |
Closes the current audio clip (allowing another clip to be opened). |
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
|
524 |
|
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
|
525 |
@since 7.0s |
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
|
526 |
*/ |
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
|
527 |
EXPORT_C void CMdaAudioPlayerUtility::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
|
528 |
{ |
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
|
529 |
ASSERT(iProperties); |
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
|
530 |
iProperties->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
|
531 |
} |
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
|
532 |
|
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
|
533 |
/** |
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
|
534 |
Returns the current playback position in microseconds from the start of the clip. |
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
|
535 |
|
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
|
536 |
@param 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
|
537 |
The current time position in microseconds from the start of the clip to the current |
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
|
538 |
play position. |
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
|
539 |
|
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
|
540 |
@return An error code indicating if the function call was successful. KErrNone on success, otherwise |
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
|
541 |
another of the system-wide error codes. |
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
|
542 |
|
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
|
543 |
@since 7.0s |
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
|
544 |
*/ |
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
|
545 |
EXPORT_C TInt CMdaAudioPlayerUtility::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
|
546 |
{ |
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
|
547 |
ASSERT(iProperties); |
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
|
548 |
return iProperties->GetPosition(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
|
549 |
} |
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
|
550 |
|
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
|
551 |
/** |
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
|
552 |
Sets the current playback position in microseconds from the start of the clip. |
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
|
553 |
|
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
|
554 |
@param 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
|
555 |
The position to move to in microseconds from the start of the clip. |
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
|
556 |
|
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
|
557 |
@since 7.0s |
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
|
558 |
*/ |
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
|
559 |
EXPORT_C void CMdaAudioPlayerUtility::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
|
560 |
{ |
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
|
561 |
ASSERT(iProperties); |
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
|
562 |
iProperties->SetPosition(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
|
563 |
} |
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
|
564 |
|
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
|
565 |
/** |
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
|
566 |
Sets the priority for playback. This is used to arbitrate between multiple |
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
|
567 |
objects trying to access a single sound device. |
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
|
568 |
|
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
|
569 |
@param aPriority |
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
|
570 |
The Priority Value. |
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
|
571 |
@param 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
|
572 |
The Priority Preference. |
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
|
573 |
|
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
|
574 |
@return An error code indicating if the function call was successful. KErrNone on success, otherwise |
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
|
575 |
another of the system-wide error codes. |
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
|
576 |
|
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
|
577 |
@since 7.0s |
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
|
578 |
|
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
|
579 |
@see CMdaAudioPlayerUtility::NewL() |
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
|
580 |
|
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
|
581 |
*/ |
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
|
582 |
EXPORT_C TInt CMdaAudioPlayerUtility::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
|
583 |
{ |
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
|
584 |
ASSERT(iProperties); |
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
|
585 |
return iProperties->SetPriority(aPriority, 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
|
586 |
} |
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
|
587 |
|
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
|
588 |
/** |
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
|
589 |
Returns the current playback volume. |
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
|
590 |
|
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
|
591 |
@param 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
|
592 |
A value between 0 and the maximum volume settings returned by 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
|
593 |
|
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
|
594 |
@return An error code indicating if the function call was successful. KErrNone on success, otherwise |
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
|
595 |
another of the system-wide error codes. |
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
|
596 |
|
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
|
597 |
@since 7.0s |
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
|
598 |
*/ |
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
|
599 |
EXPORT_C TInt CMdaAudioPlayerUtility::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
|
600 |
{ |
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
|
601 |
ASSERT(iProperties); |
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
|
602 |
return iProperties->GetVolume(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
|
603 |
} |
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
|
604 |
|
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
|
605 |
/** |
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
|
606 |
Returns the number of meta data entries in the current audio clip. |
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
|
607 |
|
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
|
608 |
@param 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
|
609 |
The number of meta data entries in the header of the current clip. |
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
|
610 |
|
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
|
611 |
@return An error code indicating if the function call was successful. KErrNone on success, otherwise |
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
|
612 |
another of the system-wide error codes. |
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
|
613 |
|
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
|
614 |
@since 7.0s |
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
|
615 |
*/ |
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
|
616 |
EXPORT_C TInt CMdaAudioPlayerUtility::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
|
617 |
{ |
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
|
618 |
ASSERT(iProperties); |
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
|
619 |
return iProperties->GetNumberOfMetaDataEntries(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
|
620 |
} |
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
|
621 |
|
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
|
622 |
/** |
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
|
623 |
Returns the requested meta data entry. |
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
|
624 |
|
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
|
625 |
@param 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
|
626 |
The index number of the meta data to retrieve. |
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
|
627 |
|
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
|
628 |
@return The requested meta data entry. |
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
|
629 |
@leave KErrNotFound |
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
|
630 |
The meta data entry does not exist. |
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
|
631 |
@leave KErrNotImplemented |
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
|
632 |
The controller does not support meta data information for this format. |
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
|
633 |
|
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
|
634 |
@since 7.0s |
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
|
635 |
*/ |
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
|
636 |
EXPORT_C CMMFMetaDataEntry* CMdaAudioPlayerUtility::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
|
637 |
{ |
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
|
638 |
ASSERT(iProperties); |
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
|
639 |
return iProperties->GetMetaDataEntryL(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
|
640 |
} |
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
|
641 |
|
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
|
642 |
/** |
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
|
643 |
Defines a window on the audio sample data. |
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
|
644 |
|
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
|
645 |
The window is defined in terms of a start and end position. |
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
|
646 |
When the current playback position reaches the window end position, or Stop() is called, the |
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
|
647 |
current playback position is set to the window start position and playback stops. |
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
|
648 |
|
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
|
649 |
The current playback position is not affected by a call to SetPlayWindow() unless it is outside |
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
|
650 |
the new playback window, in which case it is set to the window start or end position depending |
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
|
651 |
on which one is closer. |
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
|
652 |
|
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
|
653 |
The window persists until ClearPlayWindow() is called. |
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
|
654 |
Loading new audio sample data without adjusting or clearing the window will result in |
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
|
655 |
playback errors if the window is outside the new data. |
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
|
656 |
|
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
|
657 |
@param 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
|
658 |
The position defining the start of the window, measured in microseconds. If this value is less |
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
|
659 |
than zero, it is set to zero. If this value is greater than aEnd, then it is swapped with 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
|
660 |
@param 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
|
661 |
The position defining the end of the window, measured in microseconds. If this value is greater |
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
|
662 |
than the value returned by Duration(), it is set to the value of Duration(). If this value is |
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
|
663 |
less than aStart, then it is swapped with 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
|
664 |
|
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
|
665 |
@return An error code indicating if the function call was successful. KErrNone on success, otherwise |
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
|
666 |
another of the system-wide error codes. |
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
|
667 |
|
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
|
668 |
@since 7.0s |
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
|
669 |
*/ |
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
|
670 |
EXPORT_C TInt CMdaAudioPlayerUtility::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
|
671 |
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
|
672 |
{ |
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
|
673 |
ASSERT(iProperties); |
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
|
674 |
return iProperties->SetPlayWindow(aStart, 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
|
675 |
} |
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
|
676 |
|
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
|
677 |
/** |
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
|
678 |
Clears the current playback window. |
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
|
679 |
|
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
|
680 |
@return An error code indicating if the function call was successful. KErrNone on success, otherwise |
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
|
681 |
another of the system-wide error codes. |
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
|
682 |
|
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
|
683 |
@since 7.0s |
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
|
684 |
*/ |
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
|
685 |
EXPORT_C TInt CMdaAudioPlayerUtility::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
|
686 |
{ |
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
|
687 |
ASSERT(iProperties); |
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
|
688 |
return iProperties->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
|
689 |
} |
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
|
690 |
|
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
|
691 |
/** |
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
|
692 |
Sets the current playback balance. |
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
|
693 |
|
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
|
694 |
@param 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
|
695 |
A value between KMMFBalanceMaxLeft |
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
|
696 |
and KMMFBalanceMaxRight. The default value is |
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
|
697 |
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
|
698 |
|
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
|
699 |
@return An error code indicating if the function call was successful. KErrNone on success, otherwise |
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
|
700 |
another of the system-wide error codes. |
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
|
701 |
|
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
|
702 |
@since 7.0s |
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
|
703 |
*/ |
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
|
704 |
EXPORT_C TInt CMdaAudioPlayerUtility::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
|
705 |
{ |
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
|
706 |
ASSERT(iProperties); |
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
|
707 |
return iProperties->SetBalance(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
|
708 |
} |
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
|
709 |
|
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
|
710 |
/** |
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
|
711 |
* Returns The current playback balance. This function may not return the same value |
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
|
712 |
* as passed to SetBalance depending on the internal implementation in |
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
|
713 |
* the underlying components. |
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
|
714 |
* |
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
|
715 |
* @param 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
|
716 |
* A value between KMMFBalanceMaxLeft |
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
|
717 |
* and KMMFBalanceMaxRight. |
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
|
718 |
* |
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
|
719 |
* @return An error code indicating if the function call was successful. KErrNone on success, otherwise |
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
|
720 |
* another of the system-wide error codes. |
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
|
721 |
* |
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
|
722 |
* @since 7.0s |
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
|
723 |
*/ |
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
|
724 |
EXPORT_C TInt CMdaAudioPlayerUtility::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
|
725 |
{ |
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
|
726 |
ASSERT(iProperties); |
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
|
727 |
return iProperties->GetBalance(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
|
728 |
} |
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
|
729 |
|
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
|
730 |
/** |
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
|
731 |
Returns the controller implementation information associated with the current controller. |
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
|
732 |
|
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
|
733 |
@return The controller implementation structure |
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
|
734 |
|
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
|
735 |
@since 7.0s |
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
|
736 |
*/ |
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
|
737 |
EXPORT_C const CMMFControllerImplementationInformation& CMdaAudioPlayerUtility::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
|
738 |
{ |
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
|
739 |
ASSERT(iProperties); |
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
|
740 |
return iProperties->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
|
741 |
} |
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
|
742 |
|
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
|
743 |
/** |
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
|
744 |
Registers callback object to receive notifications of audio loading/rebuffering. |
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
|
745 |
|
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
|
746 |
@param 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
|
747 |
The object to receive audio loading notifications. |
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
|
748 |
|
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
|
749 |
@since 7.0s |
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
|
750 |
*/ |
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
|
751 |
EXPORT_C void CMdaAudioPlayerUtility::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
|
752 |
{ |
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
|
753 |
ASSERT(iProperties); |
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
|
754 |
iProperties->RegisterForAudioLoadingNotification(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
|
755 |
} |
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
|
756 |
|
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
|
757 |
/** |
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
|
758 |
Returns the current progress of audio loading. |
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
|
759 |
|
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
|
760 |
@param 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
|
761 |
The percentage of the audio clip loaded. |
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
|
762 |
|
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
|
763 |
@since 7.0s |
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
|
764 |
*/ |
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
|
765 |
EXPORT_C void CMdaAudioPlayerUtility::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
|
766 |
{ |
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
|
767 |
ASSERT(iProperties); |
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
|
768 |
iProperties->GetAudioLoadingProgressL(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
|
769 |
} |
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
|
770 |
|
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
|
771 |
/** |
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
|
772 |
Sends a synchronous custom command to the controller. |
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
|
773 |
|
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
|
774 |
@param aDestination |
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
|
775 |
The destination of the message, consisting of the UID of |
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
|
776 |
the interface of this message. |
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
|
777 |
@param aFunction |
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
|
778 |
The function number to indicate which function is to be called |
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
|
779 |
on the interface defined in the aDestination parameter. |
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
|
780 |
@param aDataTo1 |
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
|
781 |
A reference to the first chunk of data to be copied to the controller |
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
|
782 |
framework. The exact contents of the data are dependent on the |
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
|
783 |
interface being called. Can be 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
|
784 |
@param 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
|
785 |
A reference to the second chunk of data to be copied to the controller |
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
|
786 |
framework. The exact contents of the data are dependent on the |
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
|
787 |
interface being called. Can be 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
|
788 |
@param 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
|
789 |
A reference to an area of memory to which the controller framework will |
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
|
790 |
write any data to be passed back to the client. Can't be 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
|
791 |
|
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
|
792 |
@return The result of the request. Exact range of values is dependent on the interface. |
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
|
793 |
|
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
|
794 |
@since 7.0s |
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
|
795 |
*/ |
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
|
796 |
EXPORT_C TInt CMdaAudioPlayerUtility::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
|
797 |
{ |
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
|
798 |
ASSERT(iProperties); |
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
|
799 |
return iProperties->CustomCommandSync(aDestination, aFunction, aDataTo1, aDataTo2, 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
|
800 |
} |
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
|
801 |
|
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
|
802 |
/** |
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
|
803 |
Sends a synchronous custom command to the controller. |
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
|
804 |
|
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
|
805 |
@param aDestination |
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
|
806 |
The destination of the message, consisting of the UID of |
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
|
807 |
the interface of this message. |
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
|
808 |
@param aFunction |
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
|
809 |
The function number to indicate which function is to be called |
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
|
810 |
on the interface defined in the aDestination parameter. |
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
|
811 |
@param aDataTo1 |
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
|
812 |
A reference to the first chunk of data to be copied to the controller |
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
|
813 |
framework. The exact contents of the data are dependent on the |
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
|
814 |
interface being called. Can be 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
|
815 |
@param 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
|
816 |
A reference to the second chunk of data to be copied to the controller |
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
|
817 |
framework. The exact contents of the data are dependent on the |
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
|
818 |
interface being called. Can be 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
|
819 |
|
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
|
820 |
@return The result of the request. Exact range of values is dependent on the interface. |
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
|
821 |
|
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
|
822 |
@since 7.0s |
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
|
823 |
*/ |
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
|
824 |
EXPORT_C TInt CMdaAudioPlayerUtility::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
|
825 |
{ |
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
|
826 |
ASSERT(iProperties); |
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
|
827 |
return iProperties->CustomCommandSync(aDestination, aFunction, aDataTo1, 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
|
828 |
} |
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
|
829 |
|
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
|
830 |
/** |
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
|
831 |
Sends an asynchronous custom command to the controller. |
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
|
832 |
|
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
|
833 |
Note: |
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
|
834 |
This method will return immediately. The RunL of the active object owning the |
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
|
835 |
aStatus parameter will be called when the command is completed by the |
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
|
836 |
controller framework. |
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
|
837 |
|
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
|
838 |
@param aDestination |
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
|
839 |
The destination of the message, consisting of the uid of |
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
|
840 |
the interface of this message. |
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
|
841 |
@param aFunction |
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
|
842 |
The function number to indicate which function is to be called |
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
|
843 |
on the interface defined in the aDestination parameter. |
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
|
844 |
@param aDataTo1 |
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
|
845 |
A reference to the first chunk of data to be copied to the controller |
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
|
846 |
framework. The exact contents of the data are dependent on the |
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
|
847 |
interface being called. Can be 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
|
848 |
@param 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
|
849 |
A reference to the second chunk of data to be copied to the controller |
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
|
850 |
framework. The exact contents of the data are dependent on the |
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
|
851 |
interface being called. Can be 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
|
852 |
@param 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
|
853 |
A reference to an area of memory to which the controller framework will |
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
|
854 |
write any data to be passed back to the client. Can't be 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
|
855 |
@param 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
|
856 |
The TRequestStatus of an active object. This will contain the |
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
|
857 |
result of the request on completion. The exact range of |
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
|
858 |
result values is dependent on the interface. |
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
|
859 |
|
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
|
860 |
@since 7.0s |
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
|
861 |
*/ |
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
|
862 |
EXPORT_C void CMdaAudioPlayerUtility::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
|
863 |
{ |
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
|
864 |
ASSERT(iProperties); |
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
|
865 |
iProperties->CustomCommandAsync(aDestination, aFunction, aDataTo1, aDataTo2, aDataFrom, 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
|
866 |
} |
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
|
867 |
|
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
|
868 |
/** |
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
|
869 |
Sends an asynchronous custom command to the controller. |
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
|
870 |
|
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
|
871 |
Note: |
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
|
872 |
This method will return immediately. The RunL of the active object owning the |
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
|
873 |
aStatus parameter will be called when the command is completed by the |
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
|
874 |
controller framework. |
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
|
875 |
|
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
|
876 |
@param aDestination |
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
|
877 |
The destination of the message, consisting of the uid of |
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
|
878 |
the interface of this message. |
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
|
879 |
@param aFunction |
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
|
880 |
The function number to indicate which function is to be called |
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
|
881 |
on the interface defined in the aDestination parameter. |
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
|
882 |
@param aDataTo1 |
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
|
883 |
A reference to the first chunk of data to be copied to the controller |
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
|
884 |
framework. The exact contents of the data are dependent on the |
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
|
885 |
interface being called. Can be 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
|
886 |
@param 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
|
887 |
A reference to the second chunk of data to be copied to the controller |
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
|
888 |
framework. The exact contents of the data are dependent on the |
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
|
889 |
interface being called. Can be 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
|
890 |
@param 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
|
891 |
The TRequestStatus of an active object. This will contain the |
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
|
892 |
result of the request on completion. The exact range of |
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
|
893 |
result values is dependent on the interface. |
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
|
894 |
|
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
|
895 |
@since 7.0s |
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
|
896 |
*/ |
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
|
897 |
EXPORT_C void CMdaAudioPlayerUtility::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
|
898 |
{ |
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
|
899 |
ASSERT(iProperties); |
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
|
900 |
iProperties->CustomCommandAsync(aDestination, aFunction, aDataTo1, aDataTo2, 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
|
901 |
} |
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
|
902 |
|
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
|
903 |
/** |
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
|
904 |
Returns the bit rate of the audio clip. |
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
|
905 |
|
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
|
906 |
@param 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
|
907 |
The bit rate of the audio clip |
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
|
908 |
|
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
|
909 |
@return An error code indicating if the function call was successful. KErrNone on success, |
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
|
910 |
otherwise another of the system-wide error codes. |
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
|
911 |
|
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
|
912 |
@since 7.0s |
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
|
913 |
*/ |
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
|
914 |
EXPORT_C TInt CMdaAudioPlayerUtility::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
|
915 |
{ |
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
|
916 |
ASSERT(iProperties); |
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
|
917 |
return iProperties->GetBitRate(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
|
918 |
} |
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
|
919 |
|
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
|
920 |
/** |
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
|
921 |
Gets a controller's DRM custom command implementation. |
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
|
922 |
|
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
|
923 |
@return A pointer to a controller's DRM custom command implementation, or NULL if the |
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
|
924 |
controller does not support it. |
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
|
925 |
*/ |
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
|
926 |
EXPORT_C MMMFDRMCustomCommand* CMdaAudioPlayerUtility::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
|
927 |
{ |
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
|
928 |
ASSERT(iProperties); |
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
|
929 |
return iProperties->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
|
930 |
} |
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
|
931 |
|
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
|
932 |
/** |
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
|
933 |
Registers the Event for Notification when resource is avaliable. |
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
|
934 |
|
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
|
935 |
@param 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
|
936 |
The audio outputstream observer interface.. |
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
|
937 |
|
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
|
938 |
@param aNotificationEventUid |
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
|
939 |
The Event for which the client is registered. |
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
|
940 |
|
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
|
941 |
@param aNotificationRegistrationData |
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
|
942 |
Notification registration specific data. |
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
|
943 |
|
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
|
944 |
@return An error code indicating if the registration was successful. KErrNone on success, |
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
|
945 |
otherwise another of the system-wide error codes. |
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
|
946 |
*/ |
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
|
947 |
EXPORT_C TInt CMdaAudioPlayerUtility::RegisterAudioResourceNotification(MMMFAudioResourceNotificationCallback& aCallback,TUid aNotificationEventUid,const TDesC8& aNotificationRegistrationData) |
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
|
948 |
{ |
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
|
949 |
ASSERT(iProperties); |
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
|
950 |
return iProperties->RegisterAudioResourceNotification(aCallback,aNotificationEventUid,aNotificationRegistrationData); |
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
|
951 |
} |
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
|
952 |
|
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
|
953 |
/** |
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
|
954 |
Cancels the registered notification event. |
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
|
955 |
|
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
|
956 |
@param aNotificationEventUid |
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
|
957 |
The Event to notify the client. |
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
|
958 |
|
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
|
959 |
@return An error code indicating if the registration was successful. KErrNone on success, |
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
|
960 |
otherwise another of the system-wide error codes. |
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
|
961 |
*/ |
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
|
962 |
EXPORT_C TInt CMdaAudioPlayerUtility::CancelRegisterAudioResourceNotification(TUid aNotificationEventUid) |
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
|
963 |
{ |
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
|
964 |
ASSERT(iProperties); |
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
|
965 |
return iProperties->CancelRegisterAudioResourceNotification(aNotificationEventUid); |
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
|
966 |
} |
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
|
967 |
|
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
|
968 |
/** |
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
|
969 |
Waits for the client to resume the play even after the default timer expires. |
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
|
970 |
|
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
|
971 |
@return An error code indicating if the registration was successful. KErrNone on success, |
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
|
972 |
otherwise another of the system-wide error codes. |
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
|
973 |
*/ |
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
|
974 |
EXPORT_C TInt CMdaAudioPlayerUtility::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
|
975 |
{ |
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
|
976 |
ASSERT(iProperties); |
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
|
977 |
return iProperties->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
|
978 |
} |
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
|
979 |
|
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
|
980 |
|
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
|
981 |
/** |
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
|
982 |
Set the priority of the controller's sub thread. |
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
|
983 |
|
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
|
984 |
This can be used to increase the responsiveness of the audio plugin to minimise |
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
|
985 |
any lag in processing. This function should be used with care as it may have knock-on |
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
|
986 |
effects elsewhere in the system. |
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
|
987 |
|
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
|
988 |
@param aPriority |
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
|
989 |
The TThreadPriority that the thread should run under. The default is EPriorityNormal. |
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
|
990 |
@return TInt |
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
|
991 |
A standard error code: KErrNone if successful, KErrNotReady if the thread does not have a |
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
|
992 |
valid handle. |
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
|
993 |
*/ |
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
|
994 |
EXPORT_C TInt CMdaAudioPlayerUtility::SetThreadPriority(const TThreadPriority& aPriority) 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
|
995 |
{ |
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
|
996 |
ASSERT(iProperties); |
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
|
997 |
return iProperties->SetThreadPriority(aPriority); |
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
|
998 |
} |
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
|
999 |
|
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
|
1000 |
|
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
|
1001 |
|
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
|
1002 |
|
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
|
1003 |
CMMFMdaAudioPlayerUtility* 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
|
1004 |
TInt aPriority, |
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
|
1005 |
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
|
1006 |
{ |
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
|
1007 |
CMMFMdaAudioPlayerUtility* self = new(ELeave) CMMFMdaAudioPlayerUtility(aCallback, aPriority, 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
|
1008 |
CleanupStack::PushL(self); |
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
|
1009 |
self->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
|
1010 |
CleanupStack::Pop(self); |
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
|
1011 |
return self; |
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
|
1012 |
} |
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
|
1013 |
|
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
|
1014 |
CMMFMdaAudioPlayerUtility* 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
|
1015 |
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
|
1016 |
TInt aPriority, |
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
|
1017 |
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
|
1018 |
CMdaServer* /*aServer*/) |
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
|
1019 |
{ |
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
|
1020 |
CMMFMdaAudioPlayerUtility* self = new(ELeave) CMMFMdaAudioPlayerUtility(aCallback, aPriority, 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
|
1021 |
CleanupStack::PushL(self); |
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
|
1022 |
self->ConstructL(); |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1023 |
//TMMFileSource filesource(aFileName, KDefaultContentObject, EPlay); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1024 |
TMMFileSource * filesource; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1025 |
self->OpenFileL(*filesource); |
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
|
1026 |
CleanupStack::Pop(self); |
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
|
1027 |
return self; |
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
|
1028 |
} |
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
|
1029 |
|
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
|
1030 |
CMMFMdaAudioPlayerUtility* CMMFMdaAudioPlayerUtility::NewDesPlayerL(const TDesC8& aData, MMdaAudioPlayerCallback& aCallback, TInt aPriority, TInt aPref, CMdaServer* /*aServer*/) |
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
|
1031 |
{ |
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
|
1032 |
CMMFMdaAudioPlayerUtility* self = new(ELeave) CMMFMdaAudioPlayerUtility(aCallback, aPriority, 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
|
1033 |
CleanupStack::PushL(self); |
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
|
1034 |
self->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
|
1035 |
self->OpenDesL(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
|
1036 |
CleanupStack::Pop(self); |
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
|
1037 |
return self; |
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
|
1038 |
} |
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
|
1039 |
|
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
|
1040 |
CMMFMdaAudioPlayerUtility* CMMFMdaAudioPlayerUtility::NewDesPlayerReadOnlyL(const TDesC8& aData, MMdaAudioPlayerCallback& aCallback, TInt aPriority, TInt aPref, CMdaServer* /*aServer*/) |
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
|
1041 |
{ |
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
|
1042 |
CMMFMdaAudioPlayerUtility* self = new(ELeave) CMMFMdaAudioPlayerUtility(aCallback, aPriority, 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
|
1043 |
CleanupStack::PushL(self); |
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
|
1044 |
self->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
|
1045 |
self->OpenDesL(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
|
1046 |
CleanupStack::Pop(self); |
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
|
1047 |
return self; |
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
|
1048 |
} |
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
|
1049 |
|
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
|
1050 |
void CMMFMdaAudioPlayerUtility::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
|
1051 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1052 |
//iFindAndOpenController->UseSharedHeap(); |
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
|
1053 |
} |
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
|
1054 |
|
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
|
1055 |
// 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
|
1056 |
CMMFMdaAudioPlayerUtility::~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
|
1057 |
{ |
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
|
1058 |
|
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1059 |
//delete iControllerImplementationInformation; |
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
|
1060 |
delete iAsyncCallBack; |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1061 |
//delete iRepeatTrailingSilenceTimer; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1062 |
//delete iFindAndOpenController; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1063 |
//delete iControllerEventMonitor; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1064 |
//iMediaIds.Close(); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1065 |
//iController.Close(); |
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
|
1066 |
} |
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
|
1067 |
|
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
|
1068 |
CMMFMdaAudioPlayerUtility::CMMFMdaAudioPlayerUtility(MMdaAudioPlayerCallback& aCallback, TInt aPriority, TInt aPref) : |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1069 |
CTimer(EPriorityHigh), |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1070 |
iCallback(aCallback) |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1071 |
// iAudioPlayDeviceCommands(iController), |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1072 |
// iAudioPlayControllerCommands(iController), |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1073 |
// iNotificationRegistrationCommands(iController) |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1074 |
// iDRMCustomCommands(iController) |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1075 |
// iAudioPlayControllerSetRepeatsCommands(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
|
1076 |
{ |
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
|
1077 |
iState = 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
|
1078 |
iPrioritySettings.iPriority = aPriority; |
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
|
1079 |
iPrioritySettings.iPref = 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
|
1080 |
iPlayStart = TTimeIntervalMicroSeconds(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
|
1081 |
iPlayEnd = TTimeIntervalMicroSeconds(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
|
1082 |
iPlayWindowSet = 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
|
1083 |
iEventHolder = KNullUid; |
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
|
1084 |
} |
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
|
1085 |
|
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
|
1086 |
void CMMFMdaAudioPlayerUtility::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
|
1087 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1088 |
//iControllerEventMonitor = CMMFControllerEventMonitor::NewL(*this, iController); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1089 |
//iRepeatTrailingSilenceTimer = CRepeatTrailingSilenceTimer::NewL(*this); |
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
|
1090 |
iAsyncCallBack = CMMFMdaAudioPlayerCallBack::NewL(iCallback); |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1091 |
//User::LeaveIfError(iMediaIds.Append(KUidMediaTypeAudio)); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1092 |
//iFindAndOpenController = CMMFFindAndOpenController::NewL(*this); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1093 |
//iFindAndOpenController->Configure(iMediaIds[0], iPrioritySettings); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1094 |
//iFindAndOpenController->ConfigureController(iController, *iControllerEventMonitor, CMMFFindAndOpenController::EPlayback); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1095 |
iAsyncCallBack->InitComplete(KErrNone, 500000); |
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
|
1096 |
} |
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
|
1097 |
|
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1098 |
#if 0 |
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
|
1099 |
void CMMFMdaAudioPlayerUtility::MfaocComplete( |
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
|
1100 |
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
|
1101 |
RMMFController* /*aController*/, |
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
|
1102 |
TUid aControllerUid, |
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
|
1103 |
TMMFMessageDestination* /*aSourceHandle*/, |
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
|
1104 |
TMMFMessageDestination* /*aSinkHandle*/) |
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
|
1105 |
{ |
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
|
1106 |
if (aError == KErrNone) |
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
|
1107 |
{ |
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
|
1108 |
iControllerUid = aControllerUid; |
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
|
1109 |
|
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
|
1110 |
// Get the clip 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
|
1111 |
iDuration = TTimeIntervalMicroSeconds(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
|
1112 |
aError = iController.GetDuration(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
|
1113 |
|
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
|
1114 |
// If an error occurred during GetDuration, may try for next controller, if present. |
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
|
1115 |
if (aError != KErrNone) |
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
|
1116 |
{ |
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
|
1117 |
iControllerEventMonitor->Cancel(); |
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
|
1118 |
|
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
|
1119 |
if (iFindAndOpenController) |
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
|
1120 |
{ |
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
|
1121 |
if(iFindAndOpenController-> ControllerIndex() < (iFindAndOpenController->ControllerCount())-1) |
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
|
1122 |
{ |
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
|
1123 |
return; //actually tries to load next controllers, if there are other controllers selected in the controller list |
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
|
1124 |
} |
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
|
1125 |
} |
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
|
1126 |
|
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
|
1127 |
iController.Close(); // otherwise close the controller |
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
|
1128 |
} |
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
|
1129 |
|
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
|
1130 |
if (iFindAndOpenController) |
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
|
1131 |
{ |
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
|
1132 |
iFindAndOpenController->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
|
1133 |
} |
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
|
1134 |
} |
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
|
1135 |
|
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
|
1136 |
iAsyncCallBack->InitComplete(aError, 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
|
1137 |
} |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1138 |
#endif |
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
|
1139 |
/** |
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
|
1140 |
Open an audio clip from a file |
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
|
1141 |
@param "const TFileSource& aFileSource" "the file to open" |
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
|
1142 |
@leave "" "Leaves on an error opening the file |
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
|
1143 |
@since version 5.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
|
1144 |
*/ |
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
|
1145 |
void CMMFMdaAudioPlayerUtility::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
|
1146 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1147 |
//TMMFileSource filesource(aFileName, KDefaultContentObject, EPlay); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1148 |
TMMFileSource * filesource; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1149 |
OpenFileL(*filesource); |
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
|
1150 |
} |
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
|
1151 |
|
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
|
1152 |
/** |
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
|
1153 |
Open an audio clip from a file |
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
|
1154 |
@param "const RFile& aFile" "the shared session file handle to open" |
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
|
1155 |
@leave "" "KErrBadHandle if the file handle is not shared through the call RFs::ShareProtected(), and the underlying CAF layer needs it to be. |
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
|
1156 |
@leave "" "Leaves on an error opening the file |
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
|
1157 |
@since version 5.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
|
1158 |
*/ |
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
|
1159 |
void CMMFMdaAudioPlayerUtility::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
|
1160 |
{ |
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
|
1161 |
RFile& file = const_cast<RFile&>(aFile); |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1162 |
//TMMFileHandleSource filesource(file, KDefaultContentObject, EPlay); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1163 |
TMMFileHandleSource * filesource; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1164 |
OpenFileL(*filesource); |
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
|
1165 |
} |
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
|
1166 |
|
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
|
1167 |
void CMMFMdaAudioPlayerUtility::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
|
1168 |
{ |
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
|
1169 |
// If iAsyncCallBack is already active, we're still in the process of notifying the client |
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
|
1170 |
// that a previous request to Open...(...) has completed. |
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
|
1171 |
if (iAsyncCallBack->IsActive()) |
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
|
1172 |
User::Leave(KErrNotReady); |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1173 |
#if 0 |
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
|
1174 |
if (aSource.SourceType()==KUidMMFileHandleSource) |
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
|
1175 |
{ |
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
|
1176 |
RFile& fileHandle = static_cast<const TMMFileHandleSource&>(aSource).Handle(); |
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
|
1177 |
iFindAndOpenController->ConfigureSourceSink( |
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
|
1178 |
TMMFileHandleSource(fileHandle, aSource.UniqueId(), aSource.Intent(), aSource.IsUIEnabled()), |
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
|
1179 |
CMMFFindAndOpenController::TSourceSink(KUidMmfAudioOutput)); |
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
|
1180 |
|
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
|
1181 |
} |
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
|
1182 |
if (aSource.SourceType()==KUidMMFileSource) |
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
|
1183 |
{ |
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
|
1184 |
const TDesC& fileName = static_cast<const TMMFileSource&>(aSource).Name(); |
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
|
1185 |
iFindAndOpenController->ConfigureSourceSink( |
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
|
1186 |
TMMFileSource(fileName, aSource.UniqueId(), aSource.Intent(), aSource.IsUIEnabled()), |
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
|
1187 |
CMMFFindAndOpenController::TSourceSink(KUidMmfAudioOutput)); |
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
|
1188 |
} |
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
|
1189 |
|
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
|
1190 |
iFindAndOpenController->OpenByFileSource(aSource); |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1191 |
#endif |
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
|
1192 |
} |
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
|
1193 |
|
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
|
1194 |
/** |
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
|
1195 |
Open an audio clip from a descriptor |
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
|
1196 |
@param "const TDesC8& aDescriptor" "the descriptor containing the clip" |
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
|
1197 |
@leave "" "Leaves on an error opening the descriptor" |
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
|
1198 |
@since version 5.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
|
1199 |
*/ |
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
|
1200 |
void CMMFMdaAudioPlayerUtility::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
|
1201 |
{ |
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
|
1202 |
// If iAsyncCallBack is already active, we're still in the process of notifying the client |
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
|
1203 |
// that a previous request to Open...(...) has completed. |
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
|
1204 |
if (iAsyncCallBack->IsActive()) |
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
|
1205 |
User::Leave(KErrInUse); |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1206 |
#if 0 |
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
|
1207 |
iFindAndOpenController->ConfigureSourceSink( |
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
|
1208 |
CMMFFindAndOpenController::TSourceSink(KUidMmfDescriptorSource, |
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
|
1209 |
CMMFFindAndOpenController::GetConfigDescriptor(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
|
1210 |
CMMFFindAndOpenController::TSourceSink(KUidMmfAudioOutput)); |
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
|
1211 |
iFindAndOpenController->OpenByDescriptor(aDescriptor); |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1212 |
#endif |
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
|
1213 |
} |
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
|
1214 |
|
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
|
1215 |
/** |
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
|
1216 |
Open an audio clip from a Url |
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
|
1217 |
@param "const TDesC& aUrl" "the url reference to the clip" |
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
|
1218 |
@leave "" "Leaves on an error opening the url" |
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
|
1219 |
@since version 7.0s |
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
|
1220 |
*/ |
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
|
1221 |
void CMMFMdaAudioPlayerUtility::OpenUrlL(const TDesC& aUrl, const TInt aIapId, const TDesC8& aMimeType) |
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
|
1222 |
{ |
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
|
1223 |
// If iAsyncCallBack is already active, we're still in the process of notifying the client |
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
|
1224 |
// that a previous request to Open...(...) has completed. |
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
|
1225 |
if (iAsyncCallBack->IsActive()) |
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
|
1226 |
User::Leave(KErrInUse); |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1227 |
#if 0 |
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
|
1228 |
CBufFlat* urlCfgBuffer = 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
|
1229 |
CMMFFindAndOpenController::GetConfigUrlL(urlCfgBuffer, aUrl, aIapId); |
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
|
1230 |
|
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
|
1231 |
iFindAndOpenController->ConfigureSourceSink( |
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
|
1232 |
CMMFFindAndOpenController::TSourceSink(KUidMmfUrlSource, urlCfgBuffer->Ptr(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
|
1233 |
CMMFFindAndOpenController::TSourceSink(KUidMmfAudioOutput)); |
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
|
1234 |
iFindAndOpenController->OpenByUrl(aUrl, aIapId, aMimeType); |
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
|
1235 |
delete urlCfgBuffer; |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1236 |
#endif |
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
|
1237 |
} |
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
|
1238 |
|
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
|
1239 |
/** |
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
|
1240 |
Begins playback of the initialised audio sample at the current volume |
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
|
1241 |
and priority levels. |
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
|
1242 |
|
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
|
1243 |
When playing of the audio sample is complete, successfully or |
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
|
1244 |
otherwise, the callback function |
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
|
1245 |
MMdaAudioPlayerCallback::MapcPlayComplete() is |
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
|
1246 |
called. |
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
|
1247 |
|
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
|
1248 |
If this function is called whilst already playing then |
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
|
1249 |
MMdaAudioPlayerCallback::MapcPlayComplete will return with the |
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
|
1250 |
error code KErrNotReady. |
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
|
1251 |
|
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
|
1252 |
@since 5.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
|
1253 |
*/ |
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
|
1254 |
void CMMFMdaAudioPlayerUtility::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
|
1255 |
{ |
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
|
1256 |
// if we're already playing, call the client's callback with KErrNotReady. |
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
|
1257 |
// This is what the controller would do if we allowed the 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
|
1258 |
// to propagate down. Need to do it here too (for consistency) |
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
|
1259 |
// in case we're in a trailing silence period. |
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
|
1260 |
if (iState == 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
|
1261 |
{ |
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
|
1262 |
iAsyncCallBack->PlayComplete(KErrNotReady); |
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
|
1263 |
return; |
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
|
1264 |
} |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1265 |
#if 0 |
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
|
1266 |
// cancel the repeat timer in case the client has called 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
|
1267 |
// without waiting for the previous play to complete |
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
|
1268 |
iRepeatTrailingSilenceTimer->Cancel(); |
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
|
1269 |
// Reset played count |
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
|
1270 |
if(iState != 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
|
1271 |
{ |
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
|
1272 |
iNumberOfTimesPlayed = 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
|
1273 |
if(iNumberOfTimesToRepeat>0 || iNumberOfTimesToRepeat == KMdaRepeatForever) |
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
|
1274 |
{ |
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
|
1275 |
TInt err = iAudioPlayControllerSetRepeatsCommands.SetRepeats(iNumberOfTimesToRepeat, 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
|
1276 |
if(err==KErrNone) |
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
|
1277 |
{ |
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
|
1278 |
iNumberOfTimesToRepeat = 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
|
1279 |
iTrailingSilence = 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
|
1280 |
} |
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
|
1281 |
//Controller not supporting setrepeats custom command is not a real error |
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
|
1282 |
//we revert back to playerutility's loop play implementation in that case |
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
|
1283 |
} |
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
|
1284 |
} |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1285 |
#endif |
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
|
1286 |
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
|
1287 |
} |
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
|
1288 |
|
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
|
1289 |
void CMMFMdaAudioPlayerUtility::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
|
1290 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1291 |
#if 0 |
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
|
1292 |
#if defined(__AUDIO_PROFILING) |
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
|
1293 |
RDebug::ProfileStart(4); |
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
|
1294 |
#endif // defined(__AUDIO_PROFILING) |
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
|
1295 |
TInt err = KErrNone; |
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
|
1296 |
if (iState != EPaused || 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
|
1297 |
{ |
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
|
1298 |
err = iController.Prime(); |
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
|
1299 |
iRepeatCancelled = EFalse; |
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
|
1300 |
|
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
|
1301 |
#if defined(__AUDIO_PROFILING) |
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
|
1302 |
RDebug::ProfileEnd(4); |
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
|
1303 |
#endif // defined(__AUDIO_PROFILING) |
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
|
1304 |
|
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
|
1305 |
// make sure we don't set the position outside the play window - |
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
|
1306 |
// but allow it to remain unchanged if it's within the window |
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
|
1307 |
if (iPlayWindowSet == 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
|
1308 |
(iPosition < iPlayStart || iPosition >= 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
|
1309 |
iPosition = 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
|
1310 |
|
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
|
1311 |
if (err==KErrNone) |
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
|
1312 |
err = iController.SetPosition(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
|
1313 |
} |
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
|
1314 |
|
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
|
1315 |
if (err==KErrNone) |
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
|
1316 |
{ |
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
|
1317 |
if (iPlayWindowSet == 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
|
1318 |
err = iAudioPlayControllerCommands.SetPlaybackWindow(iPlayStart, 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
|
1319 |
else if (iPlayWindowSet == 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
|
1320 |
{ |
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
|
1321 |
err = iAudioPlayControllerCommands.DeletePlaybackWindow(); |
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
|
1322 |
iPlayWindowSet = ENone; // assume window will stay cleared |
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
|
1323 |
} |
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
|
1324 |
} |
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
|
1325 |
|
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
|
1326 |
if (err==KErrNone) |
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
|
1327 |
{ |
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
|
1328 |
#if defined(__AUDIO_PROFILING) |
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
|
1329 |
RDebug::ProfileStart(5); |
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
|
1330 |
#endif // defined(__AUDIO_PROFILING) |
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
|
1331 |
|
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
|
1332 |
err = iController.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
|
1333 |
|
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
|
1334 |
#if defined(__AUDIO_PROFILING) |
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
|
1335 |
RDebug::ProfileEnd(5); |
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
|
1336 |
#endif // defined(__AUDIO_PROFILING) |
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
|
1337 |
} |
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
|
1338 |
|
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
|
1339 |
if (err!=KErrNone) |
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
|
1340 |
iAsyncCallBack->PlayComplete(err); |
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
|
1341 |
else |
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
|
1342 |
iState = 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
|
1343 |
|
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
|
1344 |
if(iEventHolder != KNullUid) |
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
|
1345 |
{ |
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
|
1346 |
err = iNotificationRegistrationCommands.RegisterAsClient(iEventHolder,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
|
1347 |
iEventHolder = KNullUid; |
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
|
1348 |
iNotificationDataHolder = 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
|
1349 |
if(err == KErrNotSupported) |
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
|
1350 |
{ |
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
|
1351 |
return; |
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
|
1352 |
} |
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
|
1353 |
if(err != KErrNone) |
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
|
1354 |
{ |
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
|
1355 |
iController.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
|
1356 |
iAsyncCallBack->PlayComplete(err); |
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
|
1357 |
} |
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
|
1358 |
} |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1359 |
#endif |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1360 |
iState = EPlaying; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1361 |
After(500000); |
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
|
1362 |
} |
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
|
1363 |
|
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
|
1364 |
/** |
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
|
1365 |
Stops playback of the audio sample as soon as possible. |
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
|
1366 |
|
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
|
1367 |
If the audio sample is playing, playback is stopped as soon as |
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
|
1368 |
possible. If playback is already complete, nothing further happens as |
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
|
1369 |
a result of calling this function. The callback function |
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
|
1370 |
MMdaAudioPlayerCallback::MapcPlayComplete() is not |
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
|
1371 |
called. |
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
|
1372 |
|
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
|
1373 |
@since 5.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
|
1374 |
*/ |
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
|
1375 |
void CMMFMdaAudioPlayerUtility::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
|
1376 |
{ |
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
|
1377 |
|
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
|
1378 |
if (iState==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
|
1379 |
{ |
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
|
1380 |
// resetting the position to the start. |
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
|
1381 |
//if any position change in stoped state |
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
|
1382 |
iPosition = 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
|
1383 |
return; |
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
|
1384 |
} |
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
|
1385 |
|
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
|
1386 |
if (iState==EPlaying || iState==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
|
1387 |
{ |
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
|
1388 |
// cancel the repeat timer in case the client has called 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
|
1389 |
// during the trailing silence period |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1390 |
//iRepeatTrailingSilenceTimer->Cancel(); |
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
|
1391 |
|
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1392 |
//iController.Stop(); |
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
|
1393 |
iPosition = 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
|
1394 |
iState = 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
|
1395 |
} |
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
|
1396 |
|
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
|
1397 |
} |
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
|
1398 |
|
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
|
1399 |
/** |
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
|
1400 |
* |
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
|
1401 |
* Pauses playback of the audio clip |
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
|
1402 |
* @return One of the system-wide error codes |
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
|
1403 |
* @since 7.0s |
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
|
1404 |
*/ |
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
|
1405 |
TInt CMMFMdaAudioPlayerUtility::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
|
1406 |
{ |
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
|
1407 |
TInt err = KErrNone; |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1408 |
#if 0 |
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
|
1409 |
if(iRepeatTrailingSilenceTimer->IsActive()) |
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
|
1410 |
{ |
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
|
1411 |
iRepeatTrailingSilenceTimer->Cancel(); |
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
|
1412 |
iRepeatCancelled = ETrue; |
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
|
1413 |
iState = 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
|
1414 |
return KErrNone; |
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
|
1415 |
} |
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
|
1416 |
if (iState==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
|
1417 |
{ |
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
|
1418 |
err = iController.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
|
1419 |
if (!err || err==KErrNotReady) |
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
|
1420 |
err = iController.GetPosition(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
|
1421 |
iState = 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
|
1422 |
} |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1423 |
#endif |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1424 |
iState = EPaused; |
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
|
1425 |
return err; |
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
|
1426 |
} |
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
|
1427 |
|
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
|
1428 |
/** |
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
|
1429 |
* |
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
|
1430 |
* Closes the current audio clip (allowing another clip to be opened) |
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
|
1431 |
* |
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
|
1432 |
* @since 7.0s |
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
|
1433 |
*/ |
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
|
1434 |
void CMMFMdaAudioPlayerUtility::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
|
1435 |
{ |
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
|
1436 |
// Reset the audio player state. |
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
|
1437 |
Stop(); |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1438 |
#if 0 |
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
|
1439 |
iControllerEventMonitor->Cancel(); |
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
|
1440 |
iController.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
|
1441 |
if (iFindAndOpenController) |
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
|
1442 |
iFindAndOpenController->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
|
1443 |
if(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
|
1444 |
{ |
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
|
1445 |
delete 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
|
1446 |
iControllerImplementationInformation = 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
|
1447 |
} |
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
|
1448 |
iControllerUid = KNullUid; |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1449 |
#endif |
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
|
1450 |
} |
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
|
1451 |
|
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1452 |
void CMMFMdaAudioPlayerUtility::RunL() |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1453 |
{ |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1454 |
switch(iState) |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1455 |
{ |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1456 |
case EPlaying: |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1457 |
iAsyncCallBack->PlayComplete(KErrNone); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1458 |
break; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1459 |
default: |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1460 |
// do nothing |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1461 |
break; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1462 |
} |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1463 |
} |
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
|
1464 |
/** |
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
|
1465 |
Changes the current playback volume to a specified value. |
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
|
1466 |
|
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
|
1467 |
The volume can be changed before or during playback and is effective |
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
|
1468 |
immediately. |
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
|
1469 |
|
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
|
1470 |
@param 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
|
1471 |
The volume setting. This can be any value from zero to |
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
|
1472 |
the value returned by a call to |
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
|
1473 |
CMdaAudioPlayerUtility::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
|
1474 |
Setting a zero value mutes the sound. Setting the |
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
|
1475 |
maximum value results in the loudest possible sound. |
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
|
1476 |
@return An error code indicating if the function call was successful. KErrNone on success, |
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
|
1477 |
otherwise another of the system-wide error codes. |
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
|
1478 |
@panic EMMFMediaClientBadArgument is raised when the audio player utility is not initialised. |
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
|
1479 |
|
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
|
1480 |
@since 5.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
|
1481 |
*/ |
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
|
1482 |
TInt CMMFMdaAudioPlayerUtility::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
|
1483 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1484 |
TInt err = KErrNone; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1485 |
#if 0 |
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
|
1486 |
TInt err = iAudioPlayDeviceCommands.SetVolume(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
|
1487 |
if (err == KErrArgument) |
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
|
1488 |
{ |
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
|
1489 |
TInt maxVolume = 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
|
1490 |
if (aVolume < 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
|
1491 |
{ |
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
|
1492 |
aVolume = 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
|
1493 |
} |
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
|
1494 |
else if (aVolume > 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
|
1495 |
{ |
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
|
1496 |
aVolume = 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
|
1497 |
} |
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
|
1498 |
err = iAudioPlayDeviceCommands.SetVolume(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
|
1499 |
} |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1500 |
#endif |
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
|
1501 |
return err; |
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
|
1502 |
} |
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
|
1503 |
|
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
|
1504 |
/** |
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
|
1505 |
Sets the number of times the audio sample is to be repeated during the |
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
|
1506 |
playback operation. |
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
|
1507 |
|
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
|
1508 |
A period of silence can follow each playing of the sample. The audio |
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
|
1509 |
sample can be repeated indefinitely. |
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
|
1510 |
|
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
|
1511 |
@param aRepeatNumberOfTimes |
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
|
1512 |
The number of times the audio sample, together with |
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
|
1513 |
the trailing silence, is to be repeated. If this is |
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
|
1514 |
set to KMdaRepeatForever, then the audio |
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
|
1515 |
sample, together with the trailing silence, is |
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
|
1516 |
repeated indefinitely or until Stop() is |
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
|
1517 |
called. If this is set to zero, then the audio sample |
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
|
1518 |
is not repeated. The behaviour is undefined for |
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
|
1519 |
negative values (other than KMdaRepeatForever). |
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
|
1520 |
@param 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
|
1521 |
The time interval of the training silence. |
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
|
1522 |
Negative values will produce a panic USER 87. |
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
|
1523 |
@since 5.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
|
1524 |
*/ |
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
|
1525 |
void CMMFMdaAudioPlayerUtility::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
|
1526 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1527 |
#if 0 |
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
|
1528 |
TInt err = iAudioPlayControllerSetRepeatsCommands.SetRepeats(aRepeatNumberOfTimes, 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
|
1529 |
|
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
|
1530 |
if(err!=KErrNone) |
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
|
1531 |
{ |
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
|
1532 |
iNumberOfTimesToRepeat = aRepeatNumberOfTimes; |
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
|
1533 |
iTrailingSilence = 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
|
1534 |
} |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1535 |
#endif |
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
|
1536 |
} |
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
|
1537 |
|
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
|
1538 |
/** |
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
|
1539 |
Defines the period over which the volume level is to rise smoothly |
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
|
1540 |
from nothing to the normal volume level. |
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
|
1541 |
|
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
|
1542 |
@param 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
|
1543 |
The period over which the volume is to rise. A zero |
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
|
1544 |
value causes the audio sample to be played at the |
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
|
1545 |
normal level for the full duration of the playback. A |
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
|
1546 |
value which is longer than the duration of the audio |
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
|
1547 |
sample means that the sample never reaches its normal |
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
|
1548 |
volume level. |
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
|
1549 |
|
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
|
1550 |
@since 5.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
|
1551 |
*/ |
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
|
1552 |
void CMMFMdaAudioPlayerUtility::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
|
1553 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1554 |
//iAudioPlayDeviceCommands.SetVolumeRamp(aRampDuration); |
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
|
1555 |
} |
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
|
1556 |
|
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
|
1557 |
TInt CMMFMdaAudioPlayerUtility::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
|
1558 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1559 |
return KErrNone; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1560 |
#if 0 |
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
|
1561 |
iPrioritySettings.iPref = 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
|
1562 |
iPrioritySettings.iPriority = aPriority; |
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
|
1563 |
iFindAndOpenController->Configure(iMediaIds[0], 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
|
1564 |
|
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
|
1565 |
return iController.SetPrioritySettings(iPrioritySettings); |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1566 |
#endif |
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
|
1567 |
} |
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
|
1568 |
|
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
|
1569 |
/** |
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
|
1570 |
Returns the duration of the audio sample. |
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
|
1571 |
|
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
|
1572 |
@return The duration in microseconds. |
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
|
1573 |
|
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
|
1574 |
@since 5.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
|
1575 |
*/ |
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
|
1576 |
const TTimeIntervalMicroSeconds& CMMFMdaAudioPlayerUtility::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
|
1577 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1578 |
#if 0 |
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
|
1579 |
TInt err = iController.GetDuration(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
|
1580 |
if (err) |
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
|
1581 |
{ |
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
|
1582 |
iDuration = 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
|
1583 |
} |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1584 |
#endif |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1585 |
iDuration = 500000; |
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
|
1586 |
return 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
|
1587 |
} |
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
|
1588 |
|
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
|
1589 |
/** |
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
|
1590 |
Returns the duration of the audio sample in microseconds, and the duration state. |
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
|
1591 |
|
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
|
1592 |
@param 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
|
1593 |
The duration of the sample in microseconds. |
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
|
1594 |
@return The duration state |
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
|
1595 |
|
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
|
1596 |
@since 9.1 |
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
|
1597 |
*/ |
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
|
1598 |
TMMFDurationInfo CMMFMdaAudioPlayerUtility::Duration(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
|
1599 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1600 |
#if 0 |
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
|
1601 |
TPckgBuf<TMMFDurationInfo> pckg; |
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
|
1602 |
TMMFDurationInfo result = EMMFDurationInfoValid; |
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
|
1603 |
|
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
|
1604 |
TMMFMessageDestinationPckg iDestinationPckg(TMMFMessageDestination(KUidInterfaceMMFDurationInfoControl, KMMFObjectHandleController)); |
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
|
1605 |
|
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
|
1606 |
TInt err = iController.CustomCommandSync(iDestinationPckg, |
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
|
1607 |
EMMFGetDurationInfo, |
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
|
1608 |
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
|
1609 |
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
|
1610 |
pckg ); |
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
|
1611 |
|
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
|
1612 |
switch ( err ) |
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
|
1613 |
{ |
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
|
1614 |
case KErrNone: |
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
|
1615 |
result = pckg(); |
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
|
1616 |
break; |
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
|
1617 |
|
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
|
1618 |
case KErrNotSupported: |
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
|
1619 |
// Custom command not implemented return EMMFDurationInfoValid as the default value |
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
|
1620 |
break; |
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
|
1621 |
|
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
|
1622 |
default: |
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
|
1623 |
// Unknown error |
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
|
1624 |
result = EMMFDurationInfoUnknown; |
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
|
1625 |
break; |
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
|
1626 |
} |
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
|
1627 |
|
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
|
1628 |
// Get the duration information to return in 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
|
1629 |
// This is the intended behaviour regardless of what value err has |
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
|
1630 |
aDuration = 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
|
1631 |
return result; |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1632 |
#endif |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1633 |
return EMMFDurationInfoValid; |
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
|
1634 |
} |
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
|
1635 |
|
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
|
1636 |
/** |
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
|
1637 |
Returns an integer representing the maximum volume. |
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
|
1638 |
|
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
|
1639 |
This is the maximum value which can be passed to |
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
|
1640 |
CMdaAudioPlayerUtility::SetVolume(). |
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
|
1641 |
|
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
|
1642 |
@return The maximum volume. This value is platform dependent but is always greater than or equal |
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
|
1643 |
to one. |
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
|
1644 |
@panic EMMFMediaClientPanicServerCommunicationProblem is raised when the audio player utility is not initialised. |
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
|
1645 |
|
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
|
1646 |
@since 5.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
|
1647 |
*/ |
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
|
1648 |
TInt CMMFMdaAudioPlayerUtility::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
|
1649 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1650 |
TInt maxVolume = 100; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1651 |
#if 0 |
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
|
1652 |
#ifdef _DEBUG |
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
|
1653 |
TInt error = |
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
|
1654 |
#endif |
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
|
1655 |
iAudioPlayDeviceCommands.GetMaxVolume(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
|
1656 |
__ASSERT_DEBUG(error==KErrNone, Panic(EMMFMediaClientPanicServerCommunicationProblem)); |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1657 |
#endif |
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
|
1658 |
return 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
|
1659 |
} |
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
|
1660 |
|
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1661 |
#if 0 |
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
|
1662 |
void CMMFMdaAudioPlayerUtility::HandleEvent(const TMMFEvent& aEvent) |
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
|
1663 |
{ |
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
|
1664 |
// handle loading started/complete messages first, as the later code does not explicitly check the event type |
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
|
1665 |
if (aEvent.iEventType == KMMFEventCategoryAudioLoadingStarted) |
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
|
1666 |
{ |
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
|
1667 |
if (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
|
1668 |
{ |
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
|
1669 |
iLoadingObserver->MaloLoadingStarted(); |
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
|
1670 |
} |
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
|
1671 |
} |
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
|
1672 |
else if (aEvent.iEventType == KMMFEventCategoryAudioLoadingComplete) |
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
|
1673 |
{ |
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
|
1674 |
if (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
|
1675 |
{ |
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
|
1676 |
iLoadingObserver->MaloLoadingComplete(); |
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
|
1677 |
} |
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
|
1678 |
} |
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
|
1679 |
else if (aEvent.iEventType == KMMFEventCategoryAudioResourceAvailable) |
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
|
1680 |
{ |
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
|
1681 |
if (iAudioResourceNotificationCallBack != 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
|
1682 |
{ |
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
|
1683 |
TBuf8<TMMFAudioConfig::KNotificationDataBufferSize> notificationData; |
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
|
1684 |
if (KErrNone != iNotificationRegistrationCommands.GetResourceNotificationData(aEvent.iEventType, notificationData)) |
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
|
1685 |
{ |
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
|
1686 |
notificationData.SetLength(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
|
1687 |
} |
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
|
1688 |
iAudioResourceNotificationCallBack->MarncResourceAvailable(aEvent.iEventType, notificationData); |
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
|
1689 |
} |
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
|
1690 |
} |
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
|
1691 |
else if (aEvent.iEventType == KMMFEventCategoryPlaybackComplete) |
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
|
1692 |
{ |
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
|
1693 |
TInt oldState = 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
|
1694 |
//DevCR KEVN-7T5EHA: In case of pre-emption, we need to get the position from Controller, if that fails we reset the position to keep the original behaviour. |
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
|
1695 |
if(aEvent.iErrorCode == KErrInUse ||aEvent.iErrorCode == KErrDied ||aEvent.iErrorCode == KErrAccessDenied ) |
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
|
1696 |
{ |
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
|
1697 |
TInt err= iController.GetPosition(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
|
1698 |
if(err != KErrNone) |
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
|
1699 |
{ |
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
|
1700 |
iPosition = 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
|
1701 |
} |
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
|
1702 |
} |
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
|
1703 |
else |
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
|
1704 |
{ |
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
|
1705 |
iPosition = 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
|
1706 |
} |
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
|
1707 |
if (aEvent.iErrorCode == KErrNone) |
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
|
1708 |
{ |
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
|
1709 |
//If we weren't playing, ignore the event. |
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
|
1710 |
if (oldState == 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
|
1711 |
{ |
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
|
1712 |
//we finished playing the clip so repeat if required |
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
|
1713 |
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
|
1714 |
if ((iNumberOfTimesPlayed > iNumberOfTimesToRepeat) && (iNumberOfTimesToRepeat != KMdaRepeatForever)) |
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
|
1715 |
{ |
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
|
1716 |
//we've repeated enough times now |
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
|
1717 |
iNumberOfTimesPlayed = 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
|
1718 |
iState = 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
|
1719 |
iCallback.MapcPlayComplete(KErrNone); |
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
|
1720 |
} |
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
|
1721 |
else |
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
|
1722 |
{ |
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
|
1723 |
// We need to play silence, then repeat the clip |
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
|
1724 |
iTrailingSilenceLeftToPlay = 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
|
1725 |
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
|
1726 |
} |
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
|
1727 |
} |
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
|
1728 |
} |
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
|
1729 |
else |
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
|
1730 |
{ //aEvent.iErrorCode != KErrNone |
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
|
1731 |
//if we weren't playing, don't advise Client. |
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
|
1732 |
iState = 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
|
1733 |
if (oldState == 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
|
1734 |
{ |
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
|
1735 |
iCallback.MapcPlayComplete(aEvent.iErrorCode); |
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
|
1736 |
} |
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
|
1737 |
} |
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
|
1738 |
} |
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
|
1739 |
else if(aEvent.iEventType == KMMFErrorCategoryControllerGeneralError) |
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
|
1740 |
{ |
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
|
1741 |
TInt oldState = 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
|
1742 |
iPosition = 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
|
1743 |
iState = 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
|
1744 |
if (oldState == 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
|
1745 |
{ |
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
|
1746 |
iCallback.MapcPlayComplete(aEvent.iErrorCode); |
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
|
1747 |
} |
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
|
1748 |
} |
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
|
1749 |
// else we have an unexpected event that cannot be dealt with by the client. |
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
|
1750 |
// We will simply ignore this. |
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
|
1751 |
} |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1752 |
#endif |
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
|
1753 |
|
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
|
1754 |
void CMMFMdaAudioPlayerUtility::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
|
1755 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1756 |
#if 0 |
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
|
1757 |
// iRepeatTrailingSilenceTimer->After() takes a TTimeIntervalMicroSeconds32 |
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
|
1758 |
// so for longer periods of silence call it repeatedly with KMaxTInt lengths |
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
|
1759 |
TTimeIntervalMicroSeconds32 silence; |
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
|
1760 |
if (iTrailingSilenceLeftToPlay.Int64() > KMaxTInt) |
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
|
1761 |
{ |
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
|
1762 |
silence = KMaxTInt; |
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
|
1763 |
iTrailingSilenceLeftToPlay = iTrailingSilenceLeftToPlay.Int64() - KMaxTInt; |
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
|
1764 |
} |
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
|
1765 |
else |
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
|
1766 |
{ |
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
|
1767 |
silence = I64INT(iTrailingSilenceLeftToPlay.Int64()); |
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
|
1768 |
iTrailingSilenceLeftToPlay = 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
|
1769 |
} |
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
|
1770 |
iRepeatTrailingSilenceTimer->After(silence); |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1771 |
#endif |
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
|
1772 |
} |
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
|
1773 |
|
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1774 |
#if 0 |
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
|
1775 |
void CMMFMdaAudioPlayerUtility::RepeatTrailingSilenceTimerComplete() |
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
|
1776 |
{ |
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
|
1777 |
if (iTrailingSilenceLeftToPlay.Int64() > 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
|
1778 |
{ |
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
|
1779 |
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
|
1780 |
} |
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
|
1781 |
else |
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
|
1782 |
{ |
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
|
1783 |
// reset the position for subsequent plays |
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
|
1784 |
iPosition = 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
|
1785 |
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
|
1786 |
} |
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
|
1787 |
} |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1788 |
#endif |
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
|
1789 |
|
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
|
1790 |
/** |
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
|
1791 |
* |
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
|
1792 |
* Returns the current playback position in microseconds |
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
|
1793 |
* |
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
|
1794 |
* @param "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
|
1795 |
* The current time position in microseconds from the start of the file |
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
|
1796 |
* @return "TInt" One of the global error codes |
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
|
1797 |
* |
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
|
1798 |
* @since 7.0s |
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
|
1799 |
*/ |
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
|
1800 |
TInt CMMFMdaAudioPlayerUtility::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
|
1801 |
{ |
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
|
1802 |
TInt error = KErrNone; |
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
|
1803 |
if (iState==EPlaying) |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1804 |
aPosition = 250000; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1805 |
// error = iController.GetPosition(iPosition); |
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
|
1806 |
aPosition = 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
|
1807 |
return error; |
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
|
1808 |
} |
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
|
1809 |
|
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
|
1810 |
/** |
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
|
1811 |
* |
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
|
1812 |
* Set the current playback position in microseconds from the start of the file |
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
|
1813 |
* |
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
|
1814 |
* @param "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
|
1815 |
* The position to move to in microseconds from the start of the file. |
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
|
1816 |
* If aPosition is negative, the position is set to the start of the file. |
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
|
1817 |
* If aPosition is greater than the file duration, the position is set to the |
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
|
1818 |
* end of the file. |
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
|
1819 |
* |
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
|
1820 |
* @since 7.0s |
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
|
1821 |
*/ |
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
|
1822 |
void CMMFMdaAudioPlayerUtility::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
|
1823 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1824 |
#if 0 |
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
|
1825 |
// Clip the position if aPosition is greater than the 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
|
1826 |
// or if aPosition is negative. |
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
|
1827 |
const TTimeIntervalMicroSeconds maxPosition(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
|
1828 |
const TTimeIntervalMicroSeconds minPosition(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
|
1829 |
|
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
|
1830 |
if (aPosition > maxPosition) |
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
|
1831 |
iPosition = maxPosition; |
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
|
1832 |
else if (aPosition < minPosition) |
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
|
1833 |
iPosition = minPosition; |
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
|
1834 |
else |
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
|
1835 |
iPosition = 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
|
1836 |
|
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
|
1837 |
if (iState==EPlaying || iState==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
|
1838 |
{ |
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
|
1839 |
iController.SetPosition(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
|
1840 |
} |
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
|
1841 |
// else if (iState == 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
|
1842 |
// { |
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
|
1843 |
// Stop(); // We call stop so that DevSound's internal buffers are reset |
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
|
1844 |
// } |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1845 |
#endif |
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
|
1846 |
} |
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
|
1847 |
|
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
|
1848 |
/** |
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
|
1849 |
Returns the current playback volume |
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
|
1850 |
|
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
|
1851 |
@param 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
|
1852 |
A volume value between 0 and the value returned by 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
|
1853 |
|
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
|
1854 |
@return One of the global error codes. |
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
|
1855 |
|
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
|
1856 |
@since 7.0s |
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
|
1857 |
*/ |
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
|
1858 |
TInt CMMFMdaAudioPlayerUtility::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
|
1859 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1860 |
#if 0 |
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
|
1861 |
TInt error = iAudioPlayDeviceCommands.GetVolume(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
|
1862 |
return error; |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1863 |
#endif |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1864 |
aVolume = 50; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1865 |
return KErrNone; |
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
|
1866 |
} |
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
|
1867 |
|
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
|
1868 |
/** |
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
|
1869 |
* |
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
|
1870 |
* Returns the number of meta data entries in the current clip |
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
|
1871 |
* |
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
|
1872 |
* @param "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
|
1873 |
* The number of meta data entries in the header of the current clip |
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
|
1874 |
* @return "TInt" One of the global error codes |
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
|
1875 |
* |
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
|
1876 |
* @since 7.0s |
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
|
1877 |
*/ |
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
|
1878 |
TInt CMMFMdaAudioPlayerUtility::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
|
1879 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1880 |
#if 0 |
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
|
1881 |
TInt error = iController.GetNumberOfMetaDataEntries(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
|
1882 |
return error; |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1883 |
#endif |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1884 |
aNumEntries = 0; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1885 |
return KErrNone; |
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
|
1886 |
} |
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
|
1887 |
|
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
|
1888 |
/** |
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
|
1889 |
* |
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
|
1890 |
* Returns the requested meta data entry |
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
|
1891 |
* |
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
|
1892 |
* @param "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
|
1893 |
* The index number of the meta data to retrieve |
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
|
1894 |
* @return "CMMFMetaDataEntry*" The meta data entry to return |
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
|
1895 |
* @leave Leaves with KErrNotFound if the meta data entry does not exist or |
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
|
1896 |
* KErrNotImplemented if the controller does not support meta data |
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
|
1897 |
* information for this format. Other errors indicate more general system |
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
|
1898 |
* failure. |
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
|
1899 |
* |
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
|
1900 |
* @since 7.0s |
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
|
1901 |
*/ |
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
|
1902 |
CMMFMetaDataEntry* CMMFMdaAudioPlayerUtility::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
|
1903 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1904 |
#if 0 |
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
|
1905 |
return iController.GetMetaDataEntryL(aMetaDataIndex); |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1906 |
#endif |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1907 |
User::Leave(KErrNotSupported); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1908 |
return NULL; |
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
|
1909 |
} |
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
|
1910 |
|
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
|
1911 |
/** |
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
|
1912 |
* |
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
|
1913 |
* Set the current playback window |
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
|
1914 |
* |
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
|
1915 |
* @param "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
|
1916 |
* Start time of playback window relative to start of file |
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
|
1917 |
* @param "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
|
1918 |
* End time of playback window relative to start of file |
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
|
1919 |
* |
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
|
1920 |
* @return "TInt" One of the global error codes |
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
|
1921 |
* |
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
|
1922 |
* @since 7.0s |
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
|
1923 |
*/ |
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
|
1924 |
TInt CMMFMdaAudioPlayerUtility::SetPlayWindow(const TTimeIntervalMicroSeconds& aPlayStart, |
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
|
1925 |
const TTimeIntervalMicroSeconds& aPlayEnd) |
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
|
1926 |
{ |
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
|
1927 |
TInt error = KErrNone; |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1928 |
#if 0 |
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
|
1929 |
if (aPlayStart >= TTimeIntervalMicroSeconds(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
|
1930 |
aPlayStart < 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
|
1931 |
aPlayStart < aPlayEnd && |
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
|
1932 |
aPlayEnd <= 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
|
1933 |
{ |
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
|
1934 |
iPlayStart = aPlayStart; |
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
|
1935 |
iPlayEnd = aPlayEnd; |
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
|
1936 |
iPlayWindowSet = 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
|
1937 |
|
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
|
1938 |
if (iState==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
|
1939 |
error = iAudioPlayControllerCommands.SetPlaybackWindow(aPlayStart, aPlayEnd); |
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
|
1940 |
} |
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
|
1941 |
else |
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
|
1942 |
error = KErrArgument; |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1943 |
#endif |
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
|
1944 |
return error; |
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
|
1945 |
} |
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
|
1946 |
|
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
|
1947 |
/** |
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
|
1948 |
* |
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
|
1949 |
* Clear the current playback window |
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
|
1950 |
* |
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
|
1951 |
* @return "TInt" One of the global error codes |
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
|
1952 |
* |
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
|
1953 |
* @since 7.0s |
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
|
1954 |
*/ |
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
|
1955 |
TInt CMMFMdaAudioPlayerUtility::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
|
1956 |
{ |
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
|
1957 |
// clear play window start - very important because this is assigned |
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
|
1958 |
// to iPosition when we stop & is used to set the position on the next Play() |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1959 |
//iPosition = iPlayStart = iPlayEnd = TTimeIntervalMicroSeconds(0); |
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
|
1960 |
|
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1961 |
//iPlayWindowSet = EClear; |
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
|
1962 |
TInt err = KErrNone; |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1963 |
//if (iState==EPlaying) |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1964 |
//err = iAudioPlayControllerCommands.DeletePlaybackWindow(); |
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
|
1965 |
return err; |
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
|
1966 |
} |
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
|
1967 |
|
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
|
1968 |
/** |
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
|
1969 |
Sets the current playback balance |
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
|
1970 |
|
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
|
1971 |
@param 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
|
1972 |
A value between KMMFBalanceMaxLeft and KMMFBalanceMaxRight. The default value is |
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
|
1973 |
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
|
1974 |
|
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
|
1975 |
@return One of the global error codes. |
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
|
1976 |
|
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
|
1977 |
@since 7.0s |
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
|
1978 |
*/ |
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
|
1979 |
TInt CMMFMdaAudioPlayerUtility::SetBalance(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
|
1980 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1981 |
//TInt err = iAudioPlayDeviceCommands.SetBalance(aBalance); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1982 |
//return err; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1983 |
return KErrNone; |
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
|
1984 |
} |
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
|
1985 |
|
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
|
1986 |
/** |
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
|
1987 |
Returns the bit rate of the audio clip. |
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
|
1988 |
|
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
|
1989 |
@param 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
|
1990 |
Bit rate of the audio clip. |
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
|
1991 |
|
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
|
1992 |
@return One of the global error codes. |
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
|
1993 |
|
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
|
1994 |
@since 7.0s |
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
|
1995 |
*/ |
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
|
1996 |
TInt CMMFMdaAudioPlayerUtility::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
|
1997 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1998 |
//RMMFAudioControllerCustomCommands controller(iController); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
1999 |
//TInt err = controller.GetSourceBitRate(aBitRate); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2000 |
//return err; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2001 |
return KErrNone; |
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
|
2002 |
} |
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
|
2003 |
|
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
|
2004 |
const CMMFControllerImplementationInformation& CMMFMdaAudioPlayerUtility::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
|
2005 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2006 |
#if 0 |
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
|
2007 |
if (!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
|
2008 |
{ |
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
|
2009 |
if (iControllerUid==KNullUid) |
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
|
2010 |
User::Leave(KErrNotReady); |
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
|
2011 |
iControllerImplementationInformation = CMMFControllerImplementationInformation::NewL(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
|
2012 |
} |
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
|
2013 |
return *iControllerImplementationInformation; |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2014 |
#endif |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2015 |
User::Leave(KErrNotSupported); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2016 |
return *iControllerImplementationInformation; |
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
|
2017 |
} |
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
|
2018 |
|
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
|
2019 |
void CMMFMdaAudioPlayerUtility::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
|
2020 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2021 |
//User::LeaveIfError(iAudioPlayControllerCommands.GetLoadingProgress(aPercentageProgress)); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2022 |
User::Leave(KErrNotSupported); |
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
|
2023 |
} |
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
|
2024 |
|
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
|
2025 |
TInt CMMFMdaAudioPlayerUtility::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
|
2026 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2027 |
//return iController.CustomCommandSync(aDestination, aFunction, aDataTo1, aDataTo2, aDataFrom); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2028 |
return KErrNotSupported; |
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
|
2029 |
} |
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
|
2030 |
|
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
|
2031 |
TInt CMMFMdaAudioPlayerUtility::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
|
2032 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2033 |
//return iController.CustomCommandSync(aDestination, aFunction, aDataTo1, aDataTo2); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2034 |
return KErrNotSupported; |
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
|
2035 |
} |
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
|
2036 |
|
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
|
2037 |
void CMMFMdaAudioPlayerUtility::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
|
2038 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2039 |
//iController.CustomCommandAsync(aDestination, aFunction, aDataTo1, aDataTo2, aDataFrom, aStatus); |
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
|
2040 |
} |
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
|
2041 |
|
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
|
2042 |
void CMMFMdaAudioPlayerUtility::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
|
2043 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2044 |
//iController.CustomCommandAsync(aDestination, aFunction, aDataTo1, aDataTo2, aStatus); |
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
|
2045 |
} |
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
|
2046 |
|
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
|
2047 |
/** |
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
|
2048 |
Returns the current playback balance |
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
|
2049 |
|
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
|
2050 |
@param 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
|
2051 |
A value between KMMFBalanceMaxLeft and KMMFBalanceMaxRight |
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
|
2052 |
|
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
|
2053 |
@return One of the global error codes. |
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
|
2054 |
|
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
|
2055 |
@since 7.0s |
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
|
2056 |
*/ |
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
|
2057 |
TInt CMMFMdaAudioPlayerUtility::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
|
2058 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2059 |
//TInt err = iAudioPlayDeviceCommands.GetBalance(aBalance); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2060 |
//return err; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2061 |
aBalance = KMMFBalanceMaxLeft; |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2062 |
return KErrNone; |
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
|
2063 |
} |
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
|
2064 |
|
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
|
2065 |
MMMFDRMCustomCommand* CMMFMdaAudioPlayerUtility::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
|
2066 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2067 |
#if 0 |
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
|
2068 |
// TODO: check controller supports MMMFDRMCustomCommandImplementor |
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
|
2069 |
if (iDRMCustomCommands.IsSupported()) |
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
|
2070 |
{ |
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
|
2071 |
return static_cast<MMMFDRMCustomCommand*>(&iDRMCustomCommands); |
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
|
2072 |
} |
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
|
2073 |
else |
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
|
2074 |
{ |
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
|
2075 |
return 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
|
2076 |
} |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2077 |
#endif |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2078 |
return NULL; |
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
|
2079 |
} |
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
|
2080 |
|
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
|
2081 |
void CMMFMdaAudioPlayerUtility::RegisterForAudioLoadingNotification(MAudioLoadingObserver& aLoadingObserver) |
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
|
2082 |
{ |
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
|
2083 |
iLoadingObserver = &aLoadingObserver; |
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
|
2084 |
} |
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
|
2085 |
|
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
|
2086 |
TInt CMMFMdaAudioPlayerUtility::RegisterAudioResourceNotification(MMMFAudioResourceNotificationCallback& 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
|
2087 |
TUid aNotificationEventUid, |
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
|
2088 |
const TDesC8& aNotificationRegistrationData) |
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
|
2089 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2090 |
#if 0 |
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
|
2091 |
iAudioResourceNotificationCallBack = &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
|
2092 |
TInt err = iNotificationRegistrationCommands.RegisterAsClient(aNotificationEventUid, aNotificationRegistrationData); |
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
|
2093 |
if(err == KErrNotReady) |
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
|
2094 |
{ |
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
|
2095 |
iEventHolder = aNotificationEventUid; |
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
|
2096 |
iNotificationDataHolder = aNotificationRegistrationData; |
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
|
2097 |
return KErrNone; |
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
|
2098 |
} |
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
|
2099 |
iNotificationDataHolder = 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
|
2100 |
iEventHolder = KNullUid; |
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
|
2101 |
return err; |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2102 |
#endif |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2103 |
return KErrNotSupported; |
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
|
2104 |
} |
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
|
2105 |
|
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
|
2106 |
TInt CMMFMdaAudioPlayerUtility::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
|
2107 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2108 |
#if 0 |
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
|
2109 |
TInt err = iNotificationRegistrationCommands.CancelRegisterAsClient(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
|
2110 |
if(err == KErrNotReady) |
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
|
2111 |
{ |
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
|
2112 |
if(aNotificationEventId != KMMFEventCategoryAudioResourceAvailable) |
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
|
2113 |
{ |
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
|
2114 |
return KErrNotSupported; |
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
|
2115 |
} |
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
|
2116 |
if(iEventHolder == KNullUid) |
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
|
2117 |
{ |
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
|
2118 |
return KErrCancel; |
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
|
2119 |
} |
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
|
2120 |
iEventHolder = KNullUid; |
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
|
2121 |
iNotificationDataHolder = 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
|
2122 |
return KErrNone; |
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
|
2123 |
} |
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
|
2124 |
return err; |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2125 |
#endif |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2126 |
return KErrNotSupported; |
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
|
2127 |
} |
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
|
2128 |
|
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
|
2129 |
TInt CMMFMdaAudioPlayerUtility::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
|
2130 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2131 |
//return iNotificationRegistrationCommands.WillResumePlay(); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2132 |
return KErrNone; |
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
|
2133 |
} |
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
|
2134 |
|
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
|
2135 |
TInt CMMFMdaAudioPlayerUtility::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
|
2136 |
{ |
129
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2137 |
//return iController.SetThreadPriority(aThreadPriority); |
4a58d534bdaa
Add CMdaAudioPlayerUtility support to the mediaclientaudio.dll stub.
markw <markw@symbian.org>
parents:
128
diff
changeset
|
2138 |
return KErrNone; |
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
|
2139 |
} |
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
|
2140 |
|
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
|
2141 |
CRepeatTrailingSilenceTimer* 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
|
2142 |
{ |
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
|
2143 |
CRepeatTrailingSilenceTimer* s = new(ELeave) CRepeatTrailingSilenceTimer(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
|
2144 |
CleanupStack::PushL(s); |
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
|
2145 |
s->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
|
2146 |
CleanupStack::Pop(); |
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
|
2147 |
return s; |
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
|
2148 |
} |
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
|
2149 |
|
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
|
2150 |
void CRepeatTrailingSilenceTimer::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
|
2151 |
{ |
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
|
2152 |
iObs.RepeatTrailingSilenceTimerComplete(); |
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
|
2153 |
} |
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
|
2154 |
|
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
|
2155 |
CRepeatTrailingSilenceTimer::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
|
2156 |
CTimer(EPriorityHigh), |
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
|
2157 |
iObs(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
|
2158 |
{ |
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
|
2159 |
CActiveScheduler::Add(this); |
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
|
2160 |
} |
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
|
2161 |
|
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
|
2162 |
|
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
|
2163 |
|
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
|
2164 |
CMMFMdaAudioPlayerCallBack* 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
|
2165 |
{ |
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
|
2166 |
return new(ELeave) CMMFMdaAudioPlayerCallBack(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
|
2167 |
} |
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
|
2168 |
|
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
|
2169 |
CMMFMdaAudioPlayerCallBack::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
|
2170 |
CActive(CActive::EPriorityHigh), iCallback(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
|
2171 |
{ |
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
|
2172 |
CActiveScheduler::Add(this); |
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
|
2173 |
} |
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
|
2174 |
|
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
|
2175 |
CMMFMdaAudioPlayerCallBack::~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
|
2176 |
{ |
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
|
2177 |
Cancel(); |
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
|
2178 |
} |
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
|
2179 |
|
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
|
2180 |
void CMMFMdaAudioPlayerCallBack::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
|
2181 |
{ |
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
|
2182 |
iError = 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
|
2183 |
iDuration = 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
|
2184 |
iState = 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
|
2185 |
if (!IsActive()) |
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
|
2186 |
{ |
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
|
2187 |
TRequestStatus* s = &iStatus; |
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
|
2188 |
SetActive(); |
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
|
2189 |
User::RequestComplete(s, KErrNone); |
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
|
2190 |
} |
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
|
2191 |
} |
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
|
2192 |
|
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
|
2193 |
void CMMFMdaAudioPlayerCallBack::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
|
2194 |
{ |
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
|
2195 |
iError = 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
|
2196 |
iState = 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
|
2197 |
if (!IsActive()) |
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
|
2198 |
{ |
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
|
2199 |
TRequestStatus* s = &iStatus; |
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
|
2200 |
SetActive(); |
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
|
2201 |
User::RequestComplete(s, KErrNone); |
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
|
2202 |
} |
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
|
2203 |
} |
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
|
2204 |
|
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
|
2205 |
void CMMFMdaAudioPlayerCallBack::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
|
2206 |
{ |
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
|
2207 |
switch (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
|
2208 |
{ |
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
|
2209 |
case 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
|
2210 |
iCallback.MapcInitComplete(iError, 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
|
2211 |
break; |
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
|
2212 |
case 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
|
2213 |
iCallback.MapcPlayComplete(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
|
2214 |
break; |
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
|
2215 |
} |
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
|
2216 |
} |
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
|
2217 |
|
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
|
2218 |
void CMMFMdaAudioPlayerCallBack::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
|
2219 |
{ |
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
|
2220 |
// Nothing to cancel |
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
|
2221 |
} |