Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 // Standard EPOC32 includes
27 The priority for clients accessing a sound output device for audio playback or audio streaming.
29 This is a value between EMdaPriorityMin and EMdaPriorityMax. The higher value indicates a more
30 important request. It is used to resolve conflicts when more than one client tries to access the
31 same hardware resource simultaneously.
33 One of these values is passed in the first parameter to CMdaAudioOutputStream::SetPriority().
35 @see CMdaAudioOutputStream::SetPriority()
40 The lowest priority (= – 100). This indicates that the client can be interrupted
43 EMdaPriorityMin = -100,
45 Normal priority. This indicates that the client can be interrupted but only by higher priority clients.
47 EMdaPriorityNormal = 0,
49 The highest priority (= 100). This indicates that the client cannot be interrupted by other clients.
58 A set of priority values which define the behaviour to be adopted by an
59 audio client if a higher priority client takes over the device.
61 enum TMdaPriorityPreference
66 EMdaPriorityPreferenceNone = 0x00000000,
68 The audio data is time sensitive. The playback operation fails if it cannot happen when
69 requested but degraded output such as mixing or muting is allowed.
71 EMdaPriorityPreferenceTime = 0x00000001,
73 The audio data must be played at the best possible quality (for example, it must not be degraded by
74 muting or mixing). The playback operation is delayed until the sound device is available for exclusive use.
76 EMdaPriorityPreferenceQuality = 0x00000002,
78 The audio data is both time and quality sensitive. The playback operation fails if it cannot
79 happen immediately at the highest quality.
81 EMdaPriorityPreferenceTimeAndQuality = EMdaPriorityPreferenceTime|EMdaPriorityPreferenceQuality
88 Holds the current state of DevSound.
95 /** The MMF is currently playing.
98 /** The MMF is playing a tone.
100 EMMFStateTonePlaying,
101 /** The MMF is currently recording.
104 /** The MMF is playing and recording.
106 EMMFStatePlayingRecording,
107 /** The MMF is converting data.
116 A class type representing the audio client's priority,
117 priority preference and state settings.
119 class TMMFPrioritySettings
122 TMMFPrioritySettings();
124 Absolute priority of a client of the MMF Server.
126 Used by the policy server to determine which client should gain access to the sound device.
128 The priority which should be an integer in the range -100 to +100.
133 The priority preference that expresses the nature of the priority that can be none,
134 time (or speed), quality or both time and quality.
136 If this is set to EMdaPriorityPreferenceTime then the audio data is time sensitive. The playback
137 operation fails if it cannot happen when requested but degraded output such as mixing or muting
140 If this is set to EMdaPriorityPreferenceQuality then the audio data must be played at the best possible
141 quality (for example, it must not be degraded by muting or mixing). The playback operation is delayed
142 until the sound device is available for exclusive use.
144 If this is set to EMdaPriorityPreferenceTimeAndQuality then the audio data is both time and quality
145 sensitive. The playback operation fails if it cannot happen immediately at the highest quality.
147 TMdaPriorityPreference iPref;
150 The state of the MMF player such as idle, playing, recording and so on. See the TMMFState enum for possible states.
155 This member is internal and not intended for use.
164 This is a TPckgBuf package of a TMMFPrioritySettings.
166 typedef TPckgBuf<TMMFPrioritySettings> TMMFPrioritySettingsPckg;
169 Initializes the object with arbitrary values.
171 inline TMMFPrioritySettings::TMMFPrioritySettings() : iPriority(EMdaPriorityNormal), iPref(EMdaPriorityPreferenceNone), iState(EMMFStateIdle), iReserved1(0)