sl@0
|
1 |
// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
// Mda\Common\Audio.h
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//
|
sl@0
|
17 |
|
sl@0
|
18 |
#ifndef __MDA_COMMON_AUDIO_H__
|
sl@0
|
19 |
#define __MDA_COMMON_AUDIO_H__
|
sl@0
|
20 |
|
sl@0
|
21 |
// Standard EPOC32 includes
|
sl@0
|
22 |
#include <e32base.h>
|
sl@0
|
23 |
|
sl@0
|
24 |
// Public Media Server includes
|
sl@0
|
25 |
#include <mda/common/base.h>
|
sl@0
|
26 |
#include <mda/common/resource.h>
|
sl@0
|
27 |
//#include <mda/common/controller.h>
|
sl@0
|
28 |
#include <mda/common/audio.hrh>
|
sl@0
|
29 |
#include <mda/common/audiostream.hrh>
|
sl@0
|
30 |
|
sl@0
|
31 |
MDA_UID(KUidMdaPrioritySettings)
|
sl@0
|
32 |
MDA_UID(KUidMdaMediaTypeAudio) // Audio data type Uid
|
sl@0
|
33 |
MDA_UID(KUidMdaLocalSoundDevice) // Local audio stream location
|
sl@0
|
34 |
MDA_UID(KUidMdaClipLocationMaxWriteLength)
|
sl@0
|
35 |
MDA_UID(KUidMdaTelephonySoundDevice) // Telephony audio stream location
|
sl@0
|
36 |
MDA_UID(KUidMdaClientPCMSoundDevice) // Client PCM audio stream location
|
sl@0
|
37 |
MDA_UID(KUidMdaToneGeneratorDevice) // Tone Generator Device
|
sl@0
|
38 |
MDA_UID(KUidMdaClipFormatWav) // Wav Audio Clip Format Uid
|
sl@0
|
39 |
|
sl@0
|
40 |
MDA_UID(KUidMdaAudioOutputStreamDevice) // Output Stream Device
|
sl@0
|
41 |
|
sl@0
|
42 |
MDA_UID(KUidMdaWavCodec) // Wav Codec Type Uid
|
sl@0
|
43 |
MDA_UID(KUidMdaWavPcmCodec) // Wav Codec Uids
|
sl@0
|
44 |
MDA_UID(KUidMdaWavAlawCodec)
|
sl@0
|
45 |
MDA_UID(KUidMdaWavMulawCodec)
|
sl@0
|
46 |
MDA_UID(KUidMdaWavImaAdpcmCodec)
|
sl@0
|
47 |
|
sl@0
|
48 |
|
sl@0
|
49 |
MDA_UID(KUidMdaClipFormatAu) // Sun/Next "Au" Audio Clip format Uid
|
sl@0
|
50 |
MDA_UID(KUidMdaAuCodec) // Sun/Next "Au" Audio Codec Type Uid
|
sl@0
|
51 |
MDA_UID(KUidMdaAuMulawCodec) // Sun/Next "Au" Audio Codec Uids
|
sl@0
|
52 |
MDA_UID(KUidMdaAu8PcmCodec)
|
sl@0
|
53 |
MDA_UID(KUidMdaAu16PcmCodec)
|
sl@0
|
54 |
MDA_UID(KUidMdaAuAlawCodec)
|
sl@0
|
55 |
|
sl@0
|
56 |
MDA_UID(KUidMdaClipFormatRawAudio) // Raw Audio Clip format Uid
|
sl@0
|
57 |
MDA_UID(KUidMdaRawAudioCodec) // Raw Audio Codec Type Uid
|
sl@0
|
58 |
MDA_UID(KUidMdaRawAudioMulawCodec)
|
sl@0
|
59 |
MDA_UID(KUidMdaRawAudioAlawCodec)
|
sl@0
|
60 |
MDA_UID(KUidMdaRawAudioS8PcmCodec) // Signed 8bit
|
sl@0
|
61 |
MDA_UID(KUidMdaRawAudioU8PcmCodec) // Unsigned 8bit
|
sl@0
|
62 |
MDA_UID(KUidMdaRawAudioSL16PcmCodec) // Signed little-endian 16bit
|
sl@0
|
63 |
MDA_UID(KUidMdaRawAudioSB16PcmCodec) // Signed big-endian 16bit
|
sl@0
|
64 |
MDA_UID(KUidMdaRawAudioUL16PcmCodec) // Unsigned little-endian 16bit
|
sl@0
|
65 |
MDA_UID(KUidMdaRawAudioUB16PcmCodec) // Unsigned big-endian 16bit
|
sl@0
|
66 |
|
sl@0
|
67 |
MDA_UID(KUidMdaTelephonyStateQuery) // Telephony state query
|
sl@0
|
68 |
MDA_UID(KUidMdaAudioStreamVolumeRamp) // Audio stream volume ramp
|
sl@0
|
69 |
|
sl@0
|
70 |
MDA_UID(KUidMdaDataTypeSettings)
|
sl@0
|
71 |
|
sl@0
|
72 |
MDA_UID(KUidMdaClipFormatRawAmr) // AMR Audio Clip Format Uid
|
sl@0
|
73 |
MDA_UID(KUidMdaRawAmrCodec) // AMR Codec Type Uid
|
sl@0
|
74 |
|
sl@0
|
75 |
/**
|
sl@0
|
76 |
@internalComponent
|
sl@0
|
77 |
*/
|
sl@0
|
78 |
const TInt KMdaClipLocationMaxWriteLengthNone = -1;
|
sl@0
|
79 |
|
sl@0
|
80 |
// Package classes
|
sl@0
|
81 |
|
sl@0
|
82 |
/**
|
sl@0
|
83 |
@publishedAll
|
sl@0
|
84 |
@released
|
sl@0
|
85 |
|
sl@0
|
86 |
Generic Audio Parameters
|
sl@0
|
87 |
*/
|
sl@0
|
88 |
class TMdaPrioritySettings : public TMdaPackage
|
sl@0
|
89 |
{
|
sl@0
|
90 |
public:
|
sl@0
|
91 |
inline TMdaPrioritySettings();
|
sl@0
|
92 |
public:
|
sl@0
|
93 |
/**
|
sl@0
|
94 |
Absolute priority of a client of the MMF Server.
|
sl@0
|
95 |
|
sl@0
|
96 |
Used by the policy server to determine which client should gain access to the sound device.
|
sl@0
|
97 |
|
sl@0
|
98 |
The priority which should be an integer in the range -100 to +100.
|
sl@0
|
99 |
*/
|
sl@0
|
100 |
TInt iPriority;
|
sl@0
|
101 |
/**
|
sl@0
|
102 |
The priority preference that expresses the nature of the priority that can be none,
|
sl@0
|
103 |
time (or speed), quality or both time and quality.
|
sl@0
|
104 |
|
sl@0
|
105 |
Values are known to the adaptation and will be iterpreted accordingly.
|
sl@0
|
106 |
|
sl@0
|
107 |
*/
|
sl@0
|
108 |
TInt iPref;
|
sl@0
|
109 |
};
|
sl@0
|
110 |
|
sl@0
|
111 |
/**
|
sl@0
|
112 |
@publishedAll
|
sl@0
|
113 |
@deprecated
|
sl@0
|
114 |
|
sl@0
|
115 |
Datatype parameters.
|
sl@0
|
116 |
|
sl@0
|
117 |
Base class for specific data type config packages
|
sl@0
|
118 |
*/
|
sl@0
|
119 |
class TMdaDatatypeSettings : public TMdaPackage
|
sl@0
|
120 |
{
|
sl@0
|
121 |
protected:
|
sl@0
|
122 |
inline TMdaDatatypeSettings(TUid aUid,TInt aDerivedSize);
|
sl@0
|
123 |
};
|
sl@0
|
124 |
|
sl@0
|
125 |
inline TMdaDatatypeSettings::TMdaDatatypeSettings(TUid aUid,TInt aDerivedSize) :
|
sl@0
|
126 |
TMdaPackage(KUidMdaDataTypeSettings,aUid,aDerivedSize) {}
|
sl@0
|
127 |
|
sl@0
|
128 |
/**
|
sl@0
|
129 |
@publishedAll
|
sl@0
|
130 |
@released
|
sl@0
|
131 |
|
sl@0
|
132 |
The settings for audio data played through the media server.
|
sl@0
|
133 |
|
sl@0
|
134 |
These can be the settings for an audio clip, for streamed audio data, or can be the capabilities
|
sl@0
|
135 |
of the sound device. The sample rate and number of channels apply to the audio sample, the maximum
|
sl@0
|
136 |
volume applies to the output device and the volume setting can apply to either, depending on the
|
sl@0
|
137 |
device. An object of this class is a public data member of class CMdaAudioType and also can be
|
sl@0
|
138 |
passed to CMdaAudioOutputStream::Open().
|
sl@0
|
139 |
|
sl@0
|
140 |
|
sl@0
|
141 |
@see CMdaAudioType
|
sl@0
|
142 |
@see CMdaAudioOutputStream::Open()
|
sl@0
|
143 |
*/
|
sl@0
|
144 |
class TMdaAudioDataSettings : public TMdaDatatypeSettings
|
sl@0
|
145 |
{
|
sl@0
|
146 |
public:
|
sl@0
|
147 |
/**
|
sl@0
|
148 |
Audio capabilities, which include the sample rate and number of channels. The iCaps
|
sl@0
|
149 |
member is a combination of these flags.
|
sl@0
|
150 |
*/
|
sl@0
|
151 |
enum TAudioCaps
|
sl@0
|
152 |
{
|
sl@0
|
153 |
|
sl@0
|
154 |
// Sampled audio capabilities
|
sl@0
|
155 |
|
sl@0
|
156 |
/** If specified, the sample rate iSampleRate is the only one supported. If not
|
sl@0
|
157 |
specified, multiple sample rates may be supported.
|
sl@0
|
158 |
*/
|
sl@0
|
159 |
ESampleRateFixed = 0x00000001,
|
sl@0
|
160 |
|
sl@0
|
161 |
/** If specified, all sample rates between the minimum and the maximum are supported.
|
sl@0
|
162 |
*/
|
sl@0
|
163 |
ESampleRateAnyInRange = 0x00000002,
|
sl@0
|
164 |
|
sl@0
|
165 |
/** The audio sample supports a sample rate of 8.000KHz.
|
sl@0
|
166 |
*/
|
sl@0
|
167 |
ESampleRate8000Hz = 0x00000010,
|
sl@0
|
168 |
|
sl@0
|
169 |
/** The audio sample supports a sample rate of 11.025KHz.
|
sl@0
|
170 |
*/
|
sl@0
|
171 |
ESampleRate11025Hz = 0x00000040,
|
sl@0
|
172 |
|
sl@0
|
173 |
/** The audio sample supports a sample rate of 12.000KHz.
|
sl@0
|
174 |
*/
|
sl@0
|
175 |
ESampleRate12000Hz = 0x00000080,
|
sl@0
|
176 |
|
sl@0
|
177 |
/** The audio sample supports a sample rate of 16.000KHz.
|
sl@0
|
178 |
*/
|
sl@0
|
179 |
ESampleRate16000Hz = 0x00000100,
|
sl@0
|
180 |
|
sl@0
|
181 |
/** The audio sample supports a sample rate of 22.000KHz.
|
sl@0
|
182 |
*/
|
sl@0
|
183 |
ESampleRate22050Hz = 0x00000400,
|
sl@0
|
184 |
|
sl@0
|
185 |
/** The audio sample supports a sample rate of 24.000KHz.
|
sl@0
|
186 |
*/
|
sl@0
|
187 |
ESampleRate24000Hz = 0x00000800,
|
sl@0
|
188 |
|
sl@0
|
189 |
/** The audio sample supports a sample rate of 32.000KHz.
|
sl@0
|
190 |
*/
|
sl@0
|
191 |
ESampleRate32000Hz = 0x00001000,
|
sl@0
|
192 |
|
sl@0
|
193 |
/** The audio sample supports a sample rate of 44.100KHz.
|
sl@0
|
194 |
*/
|
sl@0
|
195 |
ESampleRate44100Hz = 0x00004000,
|
sl@0
|
196 |
|
sl@0
|
197 |
/** The audio sample supports a sample rate of 48.000KHz.
|
sl@0
|
198 |
*/
|
sl@0
|
199 |
ESampleRate48000Hz = 0x00010000,
|
sl@0
|
200 |
|
sl@0
|
201 |
/** The audio sample supports a sample rate of 96.000KHz.
|
sl@0
|
202 |
*/
|
sl@0
|
203 |
ESampleRate96000Hz = 0x00020000,
|
sl@0
|
204 |
|
sl@0
|
205 |
/** The audio sample supports a sample rate of 64.000KHz.
|
sl@0
|
206 |
*/
|
sl@0
|
207 |
ESampleRate64000Hz = 0x00040000,
|
sl@0
|
208 |
|
sl@0
|
209 |
// Channel related - applies to sampled
|
sl@0
|
210 |
|
sl@0
|
211 |
/** The audio sample supports mono.
|
sl@0
|
212 |
*/
|
sl@0
|
213 |
EChannelsMono = 0x02000000,
|
sl@0
|
214 |
|
sl@0
|
215 |
/** The audio sample supports stereo.
|
sl@0
|
216 |
*/
|
sl@0
|
217 |
EChannelsStereo = 0x04000000,
|
sl@0
|
218 |
|
sl@0
|
219 |
/** Routing related
|
sl@0
|
220 |
*/
|
sl@0
|
221 |
ERoutingControl = 0x08000000,
|
sl@0
|
222 |
|
sl@0
|
223 |
/** True if data flow is synchronised with real time (e.g. stream)
|
sl@0
|
224 |
*/
|
sl@0
|
225 |
ERealTime = 0x10000000
|
sl@0
|
226 |
};
|
sl@0
|
227 |
|
sl@0
|
228 |
/** Mutually exclusive flags that specify whether audio data is sent to the local device (speakers)
|
sl@0
|
229 |
or the network (phone line) or both. The iFlags member uses these flags.
|
sl@0
|
230 |
*/
|
sl@0
|
231 |
enum TAudioFlags
|
sl@0
|
232 |
{
|
sl@0
|
233 |
|
sl@0
|
234 |
/** The sound data is only sent to the network.
|
sl@0
|
235 |
*/
|
sl@0
|
236 |
ENoLocalRouting = 0x00000001,
|
sl@0
|
237 |
|
sl@0
|
238 |
/** The sound data is only sent to the local device.
|
sl@0
|
239 |
*/
|
sl@0
|
240 |
ENoNetworkRouting = 0x00000002
|
sl@0
|
241 |
};
|
sl@0
|
242 |
public:
|
sl@0
|
243 |
inline TMdaAudioDataSettings();
|
sl@0
|
244 |
inline void Query(); // Call this when you just want to have caps and maxvolume filled
|
sl@0
|
245 |
public:
|
sl@0
|
246 |
// Fixed values - must be queried
|
sl@0
|
247 |
|
sl@0
|
248 |
/**
|
sl@0
|
249 |
Specifies the capabilities of the audio sample. Its value is a combination of the flags
|
sl@0
|
250 |
contained in the TAudioCaps enum.
|
sl@0
|
251 |
*/
|
sl@0
|
252 |
TInt iCaps;
|
sl@0
|
253 |
|
sl@0
|
254 |
/**
|
sl@0
|
255 |
The maximum volume of the audio device.
|
sl@0
|
256 |
*/
|
sl@0
|
257 |
TInt iMaxVolume; // One means fixed volume (zero not valid)
|
sl@0
|
258 |
|
sl@0
|
259 |
// Variables
|
sl@0
|
260 |
/**
|
sl@0
|
261 |
The sample rate of the audio sample.
|
sl@0
|
262 |
*/
|
sl@0
|
263 |
TInt iSampleRate;
|
sl@0
|
264 |
|
sl@0
|
265 |
/**
|
sl@0
|
266 |
The number of channels for the audio sample.
|
sl@0
|
267 |
*/
|
sl@0
|
268 |
TInt iChannels;
|
sl@0
|
269 |
|
sl@0
|
270 |
/**
|
sl@0
|
271 |
The volume. Whether this applies to the audio device or to the audio sample is device-dependent.
|
sl@0
|
272 |
*/
|
sl@0
|
273 |
TInt iVolume;
|
sl@0
|
274 |
|
sl@0
|
275 |
/**
|
sl@0
|
276 |
The flags. Its value can be either of the flags contained in the TAudioFlags enum.
|
sl@0
|
277 |
*/
|
sl@0
|
278 |
TInt iFlags;
|
sl@0
|
279 |
};
|
sl@0
|
280 |
|
sl@0
|
281 |
// Wav Config Packages
|
sl@0
|
282 |
|
sl@0
|
283 |
/**
|
sl@0
|
284 |
@publishedAll
|
sl@0
|
285 |
@deprecated
|
sl@0
|
286 |
|
sl@0
|
287 |
The format for .wav audio clips.
|
sl@0
|
288 |
|
sl@0
|
289 |
An object of this type can be passed to CMdaAudioRecorderUtility::OpenL() or CMdaAudioConvertUtility::OpenL().
|
sl@0
|
290 |
*/
|
sl@0
|
291 |
class TMdaWavClipFormat : public TMdaClipFormat
|
sl@0
|
292 |
{
|
sl@0
|
293 |
public:
|
sl@0
|
294 |
inline TMdaWavClipFormat();
|
sl@0
|
295 |
};
|
sl@0
|
296 |
|
sl@0
|
297 |
/**
|
sl@0
|
298 |
@publishedAll
|
sl@0
|
299 |
@deprecated
|
sl@0
|
300 |
|
sl@0
|
301 |
The base class for codecs used by .wav audio files.
|
sl@0
|
302 |
|
sl@0
|
303 |
An object derived from this class can be used to specify the compression algorithm to use when recording or
|
sl@0
|
304 |
converting a .wav audio clip. When playing back a .wav clip, the codec is not specified: the media server
|
sl@0
|
305 |
identifies the correct one to use.
|
sl@0
|
306 |
*/
|
sl@0
|
307 |
class TMdaWavCodec : public TMdaPackage
|
sl@0
|
308 |
{
|
sl@0
|
309 |
public:
|
sl@0
|
310 |
inline TMdaWavCodec(); // Unknown type
|
sl@0
|
311 |
protected:
|
sl@0
|
312 |
inline TMdaWavCodec(TUid aUid,TInt aDerivedSize);
|
sl@0
|
313 |
};
|
sl@0
|
314 |
|
sl@0
|
315 |
/**
|
sl@0
|
316 |
@publishedAll
|
sl@0
|
317 |
@deprecated
|
sl@0
|
318 |
|
sl@0
|
319 |
The codec for uncompressed 8 or 16 bit PCM .wav format sound data.
|
sl@0
|
320 |
|
sl@0
|
321 |
This codec copies the data unchanged from source to destination.
|
sl@0
|
322 |
*/
|
sl@0
|
323 |
class TMdaPcmWavCodec : public TMdaWavCodec
|
sl@0
|
324 |
{
|
sl@0
|
325 |
public:
|
sl@0
|
326 |
|
sl@0
|
327 |
/**
|
sl@0
|
328 |
Indicates whether the sound is sampled using 8 or 16 bits.
|
sl@0
|
329 |
*/
|
sl@0
|
330 |
enum TBits
|
sl@0
|
331 |
{
|
sl@0
|
332 |
/** The sound is sampled using 8 bits.
|
sl@0
|
333 |
*/
|
sl@0
|
334 |
E8BitPcm=0,
|
sl@0
|
335 |
|
sl@0
|
336 |
/** The sound is sampled using 16 bits.
|
sl@0
|
337 |
*/
|
sl@0
|
338 |
E16BitPcm=1
|
sl@0
|
339 |
};
|
sl@0
|
340 |
public:
|
sl@0
|
341 |
inline TMdaPcmWavCodec(TBits aBits=E16BitPcm);
|
sl@0
|
342 |
public:
|
sl@0
|
343 |
/**
|
sl@0
|
344 |
Indicates whether the sound is sampled using 8 or 16 bits.
|
sl@0
|
345 |
*/
|
sl@0
|
346 |
TBits iBits;
|
sl@0
|
347 |
};
|
sl@0
|
348 |
|
sl@0
|
349 |
/**
|
sl@0
|
350 |
@publishedAll
|
sl@0
|
351 |
@deprecated
|
sl@0
|
352 |
|
sl@0
|
353 |
The codec for .wav audio data compressed using the A-Law algorithm.
|
sl@0
|
354 |
*/
|
sl@0
|
355 |
class TMdaAlawWavCodec : public TMdaWavCodec
|
sl@0
|
356 |
{
|
sl@0
|
357 |
public:
|
sl@0
|
358 |
inline TMdaAlawWavCodec();
|
sl@0
|
359 |
};
|
sl@0
|
360 |
|
sl@0
|
361 |
/**
|
sl@0
|
362 |
@publishedAll
|
sl@0
|
363 |
@deprecated
|
sl@0
|
364 |
|
sl@0
|
365 |
The codec for .wav audio data compressed using the mu-law algorithm.
|
sl@0
|
366 |
*/
|
sl@0
|
367 |
class TMdaMulawWavCodec : public TMdaWavCodec
|
sl@0
|
368 |
{
|
sl@0
|
369 |
public:
|
sl@0
|
370 |
inline TMdaMulawWavCodec();
|
sl@0
|
371 |
};
|
sl@0
|
372 |
|
sl@0
|
373 |
/**
|
sl@0
|
374 |
@publishedAll
|
sl@0
|
375 |
@deprecated
|
sl@0
|
376 |
|
sl@0
|
377 |
The codec for .wav audio data compressed using the IMA-ADPCM algorithm.
|
sl@0
|
378 |
*/
|
sl@0
|
379 |
class TMdaImaAdpcmWavCodec : public TMdaWavCodec
|
sl@0
|
380 |
{
|
sl@0
|
381 |
public:
|
sl@0
|
382 |
inline TMdaImaAdpcmWavCodec();
|
sl@0
|
383 |
};
|
sl@0
|
384 |
|
sl@0
|
385 |
|
sl@0
|
386 |
// Sun/NeXT "Au" Config Packages
|
sl@0
|
387 |
/**
|
sl@0
|
388 |
@publishedAll
|
sl@0
|
389 |
@deprecated
|
sl@0
|
390 |
|
sl@0
|
391 |
The format for .au audio clips.
|
sl@0
|
392 |
|
sl@0
|
393 |
An object of this type can be passed to CMdaAudioRecorderUtility::OpenL() or CMdaAudioConvertUtility::OpenL().
|
sl@0
|
394 |
*/
|
sl@0
|
395 |
class TMdaAuClipFormat : public TMdaClipFormat
|
sl@0
|
396 |
{
|
sl@0
|
397 |
public:
|
sl@0
|
398 |
inline TMdaAuClipFormat();
|
sl@0
|
399 |
};
|
sl@0
|
400 |
|
sl@0
|
401 |
/**
|
sl@0
|
402 |
@publishedAll
|
sl@0
|
403 |
@deprecated
|
sl@0
|
404 |
|
sl@0
|
405 |
The base class for codecs used by .au audio files.
|
sl@0
|
406 |
|
sl@0
|
407 |
An object derived from this class can be used to specify the compression algorithm to use when recording
|
sl@0
|
408 |
or converting a .au audio clip (whose format is TMdaAuClipFormat). When playing back a .au clip, the
|
sl@0
|
409 |
codec is not specified: the media server identifies the correct one to use.
|
sl@0
|
410 |
*/
|
sl@0
|
411 |
class TMdaAuCodec : public TMdaPackage
|
sl@0
|
412 |
{
|
sl@0
|
413 |
public:
|
sl@0
|
414 |
inline TMdaAuCodec(); // Unknown type
|
sl@0
|
415 |
protected:
|
sl@0
|
416 |
inline TMdaAuCodec(TUid aUid,TInt aDerivedSize);
|
sl@0
|
417 |
};
|
sl@0
|
418 |
|
sl@0
|
419 |
/**
|
sl@0
|
420 |
@publishedAll
|
sl@0
|
421 |
@deprecated
|
sl@0
|
422 |
|
sl@0
|
423 |
The codec for 8 bit PCM .au audio data.
|
sl@0
|
424 |
*/
|
sl@0
|
425 |
class TMdaPcm8BitAuCodec : public TMdaAuCodec
|
sl@0
|
426 |
{
|
sl@0
|
427 |
public:
|
sl@0
|
428 |
inline TMdaPcm8BitAuCodec();
|
sl@0
|
429 |
};
|
sl@0
|
430 |
|
sl@0
|
431 |
/**
|
sl@0
|
432 |
@publishedAll
|
sl@0
|
433 |
@deprecated
|
sl@0
|
434 |
|
sl@0
|
435 |
The codec for 16 bit PCM .au audio data.
|
sl@0
|
436 |
*/
|
sl@0
|
437 |
class TMdaPcm16BitAuCodec : public TMdaAuCodec
|
sl@0
|
438 |
{
|
sl@0
|
439 |
public:
|
sl@0
|
440 |
inline TMdaPcm16BitAuCodec();
|
sl@0
|
441 |
};
|
sl@0
|
442 |
|
sl@0
|
443 |
/**
|
sl@0
|
444 |
@publishedAll
|
sl@0
|
445 |
@deprecated
|
sl@0
|
446 |
|
sl@0
|
447 |
The codec for .au audio data compressed using the A-Law algorithm.
|
sl@0
|
448 |
*/
|
sl@0
|
449 |
class TMdaAlawAuCodec : public TMdaAuCodec
|
sl@0
|
450 |
{
|
sl@0
|
451 |
public:
|
sl@0
|
452 |
inline TMdaAlawAuCodec();
|
sl@0
|
453 |
};
|
sl@0
|
454 |
|
sl@0
|
455 |
/**
|
sl@0
|
456 |
@publishedAll
|
sl@0
|
457 |
@deprecated
|
sl@0
|
458 |
|
sl@0
|
459 |
The codec for .au audio data compressed using the mu-law algorithm.
|
sl@0
|
460 |
*/
|
sl@0
|
461 |
class TMdaMulawAuCodec : public TMdaAuCodec
|
sl@0
|
462 |
{
|
sl@0
|
463 |
public:
|
sl@0
|
464 |
inline TMdaMulawAuCodec();
|
sl@0
|
465 |
};
|
sl@0
|
466 |
|
sl@0
|
467 |
// Raw Audio Config Packages
|
sl@0
|
468 |
/**
|
sl@0
|
469 |
@publishedAll
|
sl@0
|
470 |
@deprecated
|
sl@0
|
471 |
|
sl@0
|
472 |
Audio format for raw audio clips.
|
sl@0
|
473 |
|
sl@0
|
474 |
An object of this type can be passed to CMdaAudioRecorderUtility::OpenL() or CMdaAudioConvertUtility::OpenL().
|
sl@0
|
475 |
*/
|
sl@0
|
476 |
class TMdaRawAudioClipFormat : public TMdaClipFormat
|
sl@0
|
477 |
{
|
sl@0
|
478 |
public:
|
sl@0
|
479 |
inline TMdaRawAudioClipFormat();
|
sl@0
|
480 |
};
|
sl@0
|
481 |
|
sl@0
|
482 |
/**
|
sl@0
|
483 |
@publishedAll
|
sl@0
|
484 |
@deprecated
|
sl@0
|
485 |
|
sl@0
|
486 |
The base class for raw audio codecs.
|
sl@0
|
487 |
|
sl@0
|
488 |
An object derived from this class can be used to specify the algorithm to use when opening a
|
sl@0
|
489 |
raw audio clip (whose format is TMdaRawAudioClipFormat).
|
sl@0
|
490 |
|
sl@0
|
491 |
Raw audio clips are have no header information, so that when opening one, the user must supply
|
sl@0
|
492 |
a codec and a package containing the settings appropriate for the data in the clip.
|
sl@0
|
493 |
|
sl@0
|
494 |
@see TMdaRawAudioClipFormat
|
sl@0
|
495 |
@see CMdaAudioConvertUtility::OpenL()
|
sl@0
|
496 |
@see CMdaAudioRecorderUtility::OpenL()
|
sl@0
|
497 |
*/
|
sl@0
|
498 |
class TMdaRawAudioCodec : public TMdaPackage
|
sl@0
|
499 |
{
|
sl@0
|
500 |
public:
|
sl@0
|
501 |
inline TMdaRawAudioCodec(); // Unknown type
|
sl@0
|
502 |
protected:
|
sl@0
|
503 |
inline TMdaRawAudioCodec(TUid aUid,TInt aDerivedSize);
|
sl@0
|
504 |
};
|
sl@0
|
505 |
|
sl@0
|
506 |
/**
|
sl@0
|
507 |
@publishedAll
|
sl@0
|
508 |
@deprecated
|
sl@0
|
509 |
|
sl@0
|
510 |
The codec for raw audio data compressed using the mu-law algorithm.
|
sl@0
|
511 |
*/
|
sl@0
|
512 |
class TMdaMulawRawAudioCodec : public TMdaRawAudioCodec
|
sl@0
|
513 |
{
|
sl@0
|
514 |
public:
|
sl@0
|
515 |
inline TMdaMulawRawAudioCodec();
|
sl@0
|
516 |
};
|
sl@0
|
517 |
|
sl@0
|
518 |
/**
|
sl@0
|
519 |
@publishedAll
|
sl@0
|
520 |
@deprecated
|
sl@0
|
521 |
|
sl@0
|
522 |
The codec for raw audio data compressed using the A-Law algorithm.
|
sl@0
|
523 |
*/
|
sl@0
|
524 |
class TMdaAlawRawAudioCodec : public TMdaRawAudioCodec
|
sl@0
|
525 |
{
|
sl@0
|
526 |
public:
|
sl@0
|
527 |
inline TMdaAlawRawAudioCodec();
|
sl@0
|
528 |
};
|
sl@0
|
529 |
|
sl@0
|
530 |
/**
|
sl@0
|
531 |
@publishedAll
|
sl@0
|
532 |
@deprecated
|
sl@0
|
533 |
|
sl@0
|
534 |
The codec for signed 8 bit PCM raw audio data.
|
sl@0
|
535 |
*/
|
sl@0
|
536 |
class TMdaS8PcmRawAudioCodec : public TMdaRawAudioCodec
|
sl@0
|
537 |
{
|
sl@0
|
538 |
public:
|
sl@0
|
539 |
inline TMdaS8PcmRawAudioCodec();
|
sl@0
|
540 |
};
|
sl@0
|
541 |
|
sl@0
|
542 |
/**
|
sl@0
|
543 |
@publishedAll
|
sl@0
|
544 |
@deprecated
|
sl@0
|
545 |
|
sl@0
|
546 |
The codec for unsigned 8 bit PCM raw audio data.
|
sl@0
|
547 |
*/
|
sl@0
|
548 |
class TMdaU8PcmRawAudioCodec : public TMdaRawAudioCodec
|
sl@0
|
549 |
{
|
sl@0
|
550 |
public:
|
sl@0
|
551 |
inline TMdaU8PcmRawAudioCodec();
|
sl@0
|
552 |
};
|
sl@0
|
553 |
|
sl@0
|
554 |
/**
|
sl@0
|
555 |
@publishedAll
|
sl@0
|
556 |
@deprecated
|
sl@0
|
557 |
|
sl@0
|
558 |
The codec for signed little-endian 16 bit PCM raw audio data.
|
sl@0
|
559 |
*/
|
sl@0
|
560 |
class TMdaSL16RawAudioCodec : public TMdaRawAudioCodec
|
sl@0
|
561 |
{
|
sl@0
|
562 |
public:
|
sl@0
|
563 |
inline TMdaSL16RawAudioCodec();
|
sl@0
|
564 |
};
|
sl@0
|
565 |
|
sl@0
|
566 |
/**
|
sl@0
|
567 |
@publishedAll
|
sl@0
|
568 |
@deprecated
|
sl@0
|
569 |
|
sl@0
|
570 |
The codec for signed big-endian 16 bit PCM raw audio data.
|
sl@0
|
571 |
*/
|
sl@0
|
572 |
class TMdaSB16RawAudioCodec : public TMdaRawAudioCodec
|
sl@0
|
573 |
{
|
sl@0
|
574 |
public:
|
sl@0
|
575 |
inline TMdaSB16RawAudioCodec();
|
sl@0
|
576 |
};
|
sl@0
|
577 |
|
sl@0
|
578 |
/**
|
sl@0
|
579 |
@publishedAll
|
sl@0
|
580 |
@deprecated
|
sl@0
|
581 |
|
sl@0
|
582 |
The codec for unsigned little-endian 16 bit PCM raw audio data.
|
sl@0
|
583 |
*/
|
sl@0
|
584 |
class TMdaUL16RawAudioCodec : public TMdaRawAudioCodec
|
sl@0
|
585 |
{
|
sl@0
|
586 |
public:
|
sl@0
|
587 |
inline TMdaUL16RawAudioCodec();
|
sl@0
|
588 |
};
|
sl@0
|
589 |
|
sl@0
|
590 |
/**
|
sl@0
|
591 |
@publishedAll
|
sl@0
|
592 |
@deprecated
|
sl@0
|
593 |
|
sl@0
|
594 |
The codec for unsigned big-endian 16 bit PCM raw audio data.
|
sl@0
|
595 |
*/
|
sl@0
|
596 |
class TMdaUB16RawAudioCodec : public TMdaRawAudioCodec
|
sl@0
|
597 |
{
|
sl@0
|
598 |
public:
|
sl@0
|
599 |
inline TMdaUB16RawAudioCodec();
|
sl@0
|
600 |
};
|
sl@0
|
601 |
|
sl@0
|
602 |
/**
|
sl@0
|
603 |
@publishedAll
|
sl@0
|
604 |
@deprecated
|
sl@0
|
605 |
|
sl@0
|
606 |
Local Audio Stream Device
|
sl@0
|
607 |
Control local microphone/speaker audio stream
|
sl@0
|
608 |
May not function during telephone call
|
sl@0
|
609 |
*/
|
sl@0
|
610 |
class TMdaLocalAudioDevice : public TMdaStreamDevice
|
sl@0
|
611 |
{
|
sl@0
|
612 |
public:
|
sl@0
|
613 |
inline TMdaLocalAudioDevice();
|
sl@0
|
614 |
};
|
sl@0
|
615 |
|
sl@0
|
616 |
/**
|
sl@0
|
617 |
@publishedAll
|
sl@0
|
618 |
@deprecated
|
sl@0
|
619 |
|
sl@0
|
620 |
Telephony Audio Stream Device
|
sl@0
|
621 |
Control telephony microphone+downlink/speaker+uplink audio stream
|
sl@0
|
622 |
Only functional during telephone call
|
sl@0
|
623 |
*/
|
sl@0
|
624 |
class TMdaTelephonyAudioDevice : public TMdaStreamDevice
|
sl@0
|
625 |
{
|
sl@0
|
626 |
public:
|
sl@0
|
627 |
inline TMdaTelephonyAudioDevice();
|
sl@0
|
628 |
};
|
sl@0
|
629 |
|
sl@0
|
630 |
/**
|
sl@0
|
631 |
@publishedAll
|
sl@0
|
632 |
@deprecated
|
sl@0
|
633 |
|
sl@0
|
634 |
This class is used in a ResourceConfig on a telephony port
|
sl@0
|
635 |
to determine the current state of telephony
|
sl@0
|
636 |
*/
|
sl@0
|
637 |
class TMdaTelephonyStateQuery : public TMdaPackage
|
sl@0
|
638 |
{
|
sl@0
|
639 |
public:
|
sl@0
|
640 |
inline TMdaTelephonyStateQuery();
|
sl@0
|
641 |
public:
|
sl@0
|
642 |
TBool iIsTelephonyActive;
|
sl@0
|
643 |
};
|
sl@0
|
644 |
|
sl@0
|
645 |
/**
|
sl@0
|
646 |
@publishedAll
|
sl@0
|
647 |
@deprecated
|
sl@0
|
648 |
|
sl@0
|
649 |
Client PCM Audio Stream Device
|
sl@0
|
650 |
Used to configure a 16bit PCM audio stream to/from client
|
sl@0
|
651 |
*/
|
sl@0
|
652 |
class TMdaClientPCMAudioDevice : public TMdaStreamDevice
|
sl@0
|
653 |
{
|
sl@0
|
654 |
public:
|
sl@0
|
655 |
inline TMdaClientPCMAudioDevice();
|
sl@0
|
656 |
};
|
sl@0
|
657 |
|
sl@0
|
658 |
|
sl@0
|
659 |
/**
|
sl@0
|
660 |
@publishedAll
|
sl@0
|
661 |
@deprecated
|
sl@0
|
662 |
|
sl@0
|
663 |
Volume ramping control on audio stream devices
|
sl@0
|
664 |
*/
|
sl@0
|
665 |
class TMdaAudioStreamVolumeRamp : public TMdaPackage
|
sl@0
|
666 |
{
|
sl@0
|
667 |
public:
|
sl@0
|
668 |
inline TMdaAudioStreamVolumeRamp();
|
sl@0
|
669 |
public:
|
sl@0
|
670 |
TTimeIntervalMicroSeconds iDuration;
|
sl@0
|
671 |
};
|
sl@0
|
672 |
|
sl@0
|
673 |
|
sl@0
|
674 |
// Inlines
|
sl@0
|
675 |
|
sl@0
|
676 |
/**
|
sl@0
|
677 |
Default constructor. The member data is not initialised.
|
sl@0
|
678 |
*/
|
sl@0
|
679 |
inline TMdaAudioDataSettings::TMdaAudioDataSettings() :
|
sl@0
|
680 |
TMdaDatatypeSettings(KUidMdaMediaTypeAudio,sizeof(TMdaAudioDataSettings))
|
sl@0
|
681 |
{
|
sl@0
|
682 |
Mem::FillZ(&iSampleRate,sizeof(TInt)*4);
|
sl@0
|
683 |
}
|
sl@0
|
684 |
|
sl@0
|
685 |
/**
|
sl@0
|
686 |
Sets the number of channels, the sample rate and the volume to KMdaUnknown (–1). Call this function when you
|
sl@0
|
687 |
only want to have the iCaps and iMaxVolume members filled.
|
sl@0
|
688 |
*/
|
sl@0
|
689 |
inline void TMdaAudioDataSettings::Query()
|
sl@0
|
690 |
{
|
sl@0
|
691 |
iChannels = KMdaUnknown;
|
sl@0
|
692 |
iSampleRate = KMdaUnknown;
|
sl@0
|
693 |
iVolume = KMdaUnknown;
|
sl@0
|
694 |
}// Call this when you just want to have caps and maxvolume filled
|
sl@0
|
695 |
|
sl@0
|
696 |
/**
|
sl@0
|
697 |
The default constructor initialises the object so that it can be identified by the media server.
|
sl@0
|
698 |
*/
|
sl@0
|
699 |
inline TMdaWavClipFormat::TMdaWavClipFormat() :
|
sl@0
|
700 |
TMdaClipFormat(KUidMdaClipFormatWav,sizeof(TMdaWavClipFormat)) {}
|
sl@0
|
701 |
|
sl@0
|
702 |
/**
|
sl@0
|
703 |
The default constructor initialises the package so that it can be identified by the media server.
|
sl@0
|
704 |
*/
|
sl@0
|
705 |
inline TMdaWavCodec::TMdaWavCodec() :
|
sl@0
|
706 |
TMdaPackage(KUidMdaWavCodec,KNullUid,sizeof(TMdaWavCodec)) {}
|
sl@0
|
707 |
|
sl@0
|
708 |
inline TMdaWavCodec::TMdaWavCodec(TUid aUid, TInt aDerivedSize) :
|
sl@0
|
709 |
TMdaPackage(KUidMdaWavCodec,aUid,aDerivedSize) {}
|
sl@0
|
710 |
|
sl@0
|
711 |
/**
|
sl@0
|
712 |
Constructs the package with a flag that indicates whether the sound is sampled using 8 or 16 bits.
|
sl@0
|
713 |
|
sl@0
|
714 |
@param aBits
|
sl@0
|
715 |
Indicates whether the sound is sampled using 8 or 16 bits.
|
sl@0
|
716 |
*/
|
sl@0
|
717 |
inline TMdaPcmWavCodec::TMdaPcmWavCodec(TBits aBits) :
|
sl@0
|
718 |
TMdaWavCodec(KUidMdaWavPcmCodec,sizeof(TMdaPcmWavCodec)), iBits(aBits) {}
|
sl@0
|
719 |
|
sl@0
|
720 |
/**
|
sl@0
|
721 |
The default constructor initialises the package so that it can be identified by the media server.
|
sl@0
|
722 |
*/
|
sl@0
|
723 |
inline TMdaAlawWavCodec::TMdaAlawWavCodec() :
|
sl@0
|
724 |
TMdaWavCodec(KUidMdaWavAlawCodec,sizeof(TMdaAlawWavCodec)) {}
|
sl@0
|
725 |
|
sl@0
|
726 |
/**
|
sl@0
|
727 |
The default constructor initialises the object so that it can be identified by the media server.
|
sl@0
|
728 |
*/
|
sl@0
|
729 |
inline TMdaMulawWavCodec::TMdaMulawWavCodec() :
|
sl@0
|
730 |
TMdaWavCodec(KUidMdaWavMulawCodec,sizeof(TMdaMulawWavCodec)) {}
|
sl@0
|
731 |
|
sl@0
|
732 |
/**
|
sl@0
|
733 |
The default constructor initialises the package so that it can be identified by the media server.
|
sl@0
|
734 |
*/
|
sl@0
|
735 |
inline TMdaImaAdpcmWavCodec::TMdaImaAdpcmWavCodec() :
|
sl@0
|
736 |
TMdaWavCodec(KUidMdaWavImaAdpcmCodec,sizeof(TMdaImaAdpcmWavCodec)) {}
|
sl@0
|
737 |
|
sl@0
|
738 |
/**
|
sl@0
|
739 |
The default constructor initialises the object so that it can be identified by the media server.
|
sl@0
|
740 |
*/
|
sl@0
|
741 |
inline TMdaAuClipFormat::TMdaAuClipFormat() :
|
sl@0
|
742 |
TMdaClipFormat(KUidMdaClipFormatAu,sizeof(TMdaAuClipFormat)) {}
|
sl@0
|
743 |
|
sl@0
|
744 |
/**
|
sl@0
|
745 |
The default constructor initialises the package so that it can be identified by the media server.
|
sl@0
|
746 |
*/
|
sl@0
|
747 |
inline TMdaAuCodec::TMdaAuCodec() :
|
sl@0
|
748 |
TMdaPackage(KUidMdaAuCodec,KNullUid,sizeof(TMdaAuCodec)) {}
|
sl@0
|
749 |
|
sl@0
|
750 |
inline TMdaAuCodec::TMdaAuCodec(TUid aUid,TInt aDerivedSize) :
|
sl@0
|
751 |
TMdaPackage(KUidMdaAuCodec,aUid,aDerivedSize) {}
|
sl@0
|
752 |
|
sl@0
|
753 |
/**
|
sl@0
|
754 |
The default constructor initialises the package so that it can be identified by the media server.
|
sl@0
|
755 |
*/
|
sl@0
|
756 |
inline TMdaPcm16BitAuCodec::TMdaPcm16BitAuCodec() :
|
sl@0
|
757 |
TMdaAuCodec(KUidMdaAu16PcmCodec,sizeof(TMdaPcm16BitAuCodec)) {}
|
sl@0
|
758 |
|
sl@0
|
759 |
/**
|
sl@0
|
760 |
The default constructor initialises the package so that it can be identified by the media server.
|
sl@0
|
761 |
*/
|
sl@0
|
762 |
inline TMdaPcm8BitAuCodec::TMdaPcm8BitAuCodec() :
|
sl@0
|
763 |
TMdaAuCodec(KUidMdaAu8PcmCodec,sizeof(TMdaPcm8BitAuCodec)) {}
|
sl@0
|
764 |
|
sl@0
|
765 |
/**
|
sl@0
|
766 |
The default constructor initialises the package so that it can be identified by the media server.
|
sl@0
|
767 |
*/
|
sl@0
|
768 |
inline TMdaAlawAuCodec::TMdaAlawAuCodec() :
|
sl@0
|
769 |
TMdaAuCodec(KUidMdaAuAlawCodec,sizeof(TMdaAlawAuCodec)) {}
|
sl@0
|
770 |
|
sl@0
|
771 |
/**
|
sl@0
|
772 |
The default constructor initialises the object so that it can be identified by the media server.
|
sl@0
|
773 |
*/
|
sl@0
|
774 |
inline TMdaMulawAuCodec::TMdaMulawAuCodec() :
|
sl@0
|
775 |
TMdaAuCodec(KUidMdaAuMulawCodec,sizeof(TMdaMulawAuCodec)) {}
|
sl@0
|
776 |
|
sl@0
|
777 |
/**
|
sl@0
|
778 |
The default constructor initialises the object so that it can be identified by the media server.
|
sl@0
|
779 |
*/
|
sl@0
|
780 |
inline TMdaRawAudioClipFormat::TMdaRawAudioClipFormat() :
|
sl@0
|
781 |
TMdaClipFormat(KUidMdaClipFormatRawAudio,sizeof(TMdaRawAudioClipFormat)) {}
|
sl@0
|
782 |
|
sl@0
|
783 |
/**
|
sl@0
|
784 |
The default constructor initialises the package so that it can be identified by the media server.
|
sl@0
|
785 |
*/
|
sl@0
|
786 |
inline TMdaRawAudioCodec::TMdaRawAudioCodec() :
|
sl@0
|
787 |
TMdaPackage(KUidMdaRawAudioCodec,KNullUid,sizeof(TMdaRawAudioCodec)) {}
|
sl@0
|
788 |
|
sl@0
|
789 |
inline TMdaRawAudioCodec::TMdaRawAudioCodec(TUid aUid,TInt aDerivedSize) :
|
sl@0
|
790 |
TMdaPackage(KUidMdaRawAudioCodec,aUid,aDerivedSize) {}
|
sl@0
|
791 |
|
sl@0
|
792 |
/**
|
sl@0
|
793 |
The default constructor initialises the object so that it can be identified by the media server.
|
sl@0
|
794 |
*/
|
sl@0
|
795 |
inline TMdaMulawRawAudioCodec::TMdaMulawRawAudioCodec() :
|
sl@0
|
796 |
TMdaRawAudioCodec(KUidMdaRawAudioMulawCodec,sizeof(TMdaMulawRawAudioCodec)) {}
|
sl@0
|
797 |
|
sl@0
|
798 |
/**
|
sl@0
|
799 |
The default constructor initialises the package so that it can be identified by the media server.
|
sl@0
|
800 |
*/
|
sl@0
|
801 |
inline TMdaAlawRawAudioCodec::TMdaAlawRawAudioCodec() :
|
sl@0
|
802 |
TMdaRawAudioCodec(KUidMdaRawAudioAlawCodec,sizeof(TMdaAlawRawAudioCodec)) {}
|
sl@0
|
803 |
|
sl@0
|
804 |
/**
|
sl@0
|
805 |
The default constructor initialises the package so that it can be identified by the media server.
|
sl@0
|
806 |
*/
|
sl@0
|
807 |
inline TMdaS8PcmRawAudioCodec::TMdaS8PcmRawAudioCodec() :
|
sl@0
|
808 |
TMdaRawAudioCodec(KUidMdaRawAudioS8PcmCodec,sizeof(TMdaS8PcmRawAudioCodec)) {}
|
sl@0
|
809 |
|
sl@0
|
810 |
/**
|
sl@0
|
811 |
The default constructor initialises the package so that it can be identified by the media server.
|
sl@0
|
812 |
*/
|
sl@0
|
813 |
inline TMdaU8PcmRawAudioCodec::TMdaU8PcmRawAudioCodec() :
|
sl@0
|
814 |
TMdaRawAudioCodec(KUidMdaRawAudioU8PcmCodec,sizeof(TMdaU8PcmRawAudioCodec)) {}
|
sl@0
|
815 |
|
sl@0
|
816 |
/**
|
sl@0
|
817 |
The default constructor initialises the package so that it can be identified by the media server.
|
sl@0
|
818 |
*/
|
sl@0
|
819 |
inline TMdaSL16RawAudioCodec::TMdaSL16RawAudioCodec() :
|
sl@0
|
820 |
TMdaRawAudioCodec(KUidMdaRawAudioSL16PcmCodec,sizeof(TMdaSL16RawAudioCodec)) {}
|
sl@0
|
821 |
|
sl@0
|
822 |
/**
|
sl@0
|
823 |
The default constructor initialises the package so that it can be identified by the media server.
|
sl@0
|
824 |
*/
|
sl@0
|
825 |
inline TMdaSB16RawAudioCodec::TMdaSB16RawAudioCodec() :
|
sl@0
|
826 |
TMdaRawAudioCodec(KUidMdaRawAudioSB16PcmCodec,sizeof(TMdaSB16RawAudioCodec)) {}
|
sl@0
|
827 |
|
sl@0
|
828 |
/**
|
sl@0
|
829 |
The default constructor initialises the package so that it can be identified by the media server.
|
sl@0
|
830 |
*/
|
sl@0
|
831 |
inline TMdaUL16RawAudioCodec::TMdaUL16RawAudioCodec() :
|
sl@0
|
832 |
TMdaRawAudioCodec(KUidMdaRawAudioUL16PcmCodec,sizeof(TMdaUL16RawAudioCodec)) {}
|
sl@0
|
833 |
|
sl@0
|
834 |
/**
|
sl@0
|
835 |
The default constructor initialises the package so that it can be identified by the media server.
|
sl@0
|
836 |
*/
|
sl@0
|
837 |
inline TMdaUB16RawAudioCodec::TMdaUB16RawAudioCodec() :
|
sl@0
|
838 |
TMdaRawAudioCodec(KUidMdaRawAudioUB16PcmCodec,sizeof(TMdaUB16RawAudioCodec)) {}
|
sl@0
|
839 |
|
sl@0
|
840 |
inline TMdaLocalAudioDevice::TMdaLocalAudioDevice() :
|
sl@0
|
841 |
TMdaStreamDevice(KUidMdaLocalSoundDevice,sizeof(TMdaLocalAudioDevice)) {}
|
sl@0
|
842 |
|
sl@0
|
843 |
inline TMdaTelephonyAudioDevice::TMdaTelephonyAudioDevice() :
|
sl@0
|
844 |
TMdaStreamDevice(KUidMdaTelephonySoundDevice,sizeof(TMdaTelephonyAudioDevice)) {}
|
sl@0
|
845 |
|
sl@0
|
846 |
inline TMdaClientPCMAudioDevice::TMdaClientPCMAudioDevice() :
|
sl@0
|
847 |
TMdaStreamDevice(KUidMdaClientPCMSoundDevice,sizeof(TMdaClientPCMAudioDevice)) {}
|
sl@0
|
848 |
|
sl@0
|
849 |
inline TMdaAudioStreamVolumeRamp::TMdaAudioStreamVolumeRamp() :
|
sl@0
|
850 |
TMdaPackage(KUidMdaAudioStreamVolumeRamp,KUidMdaAudioStreamVolumeRamp,sizeof(TMdaAudioStreamVolumeRamp)) {}
|
sl@0
|
851 |
|
sl@0
|
852 |
inline TMdaTelephonyStateQuery::TMdaTelephonyStateQuery() :
|
sl@0
|
853 |
TMdaPackage(KUidMdaTelephonySoundDevice,KUidMdaTelephonyStateQuery,sizeof(TMdaTelephonyStateQuery)) {}
|
sl@0
|
854 |
|
sl@0
|
855 |
inline TMdaPrioritySettings::TMdaPrioritySettings() :
|
sl@0
|
856 |
TMdaPackage(KUidMdaPrioritySettings,KUidMdaPrioritySettings,sizeof(TMdaPrioritySettings)) {}
|
sl@0
|
857 |
|
sl@0
|
858 |
#endif
|