|
0
|
1 |
/*
|
|
|
2 |
* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
|
3 |
* All rights reserved.
|
|
|
4 |
* This component and the accompanying materials are made available
|
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
|
6 |
* which accompanies this distribution, and is available
|
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
|
8 |
*
|
|
|
9 |
* Initial Contributors:
|
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
|
11 |
*
|
|
|
12 |
* Contributors:
|
|
|
13 |
*
|
|
|
14 |
* Description:
|
|
|
15 |
*
|
|
|
16 |
*/
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
#ifndef RESOURCEAUDIOENUMS_HRH
|
|
|
21 |
#define RESOURCEAUDIOENUMS_HRH
|
|
|
22 |
|
|
|
23 |
// DATA TYPES
|
|
|
24 |
|
|
|
25 |
/**
|
|
|
26 |
* Sample rates supported by MMF.
|
|
|
27 |
*/
|
|
|
28 |
enum TMMFSampleRate
|
|
|
29 |
{
|
|
|
30 |
EMMFSampleRate8000Hz = 0x00000001,
|
|
|
31 |
EMMFSampleRate11025Hz = 0x00000002,
|
|
|
32 |
EMMFSampleRate16000Hz = 0x00000004,
|
|
|
33 |
EMMFSampleRate22050Hz = 0x00000008,
|
|
|
34 |
EMMFSampleRate32000Hz = 0x00000010,
|
|
|
35 |
EMMFSampleRate44100Hz = 0x00000020,
|
|
|
36 |
EMMFSampleRate48000Hz = 0x00000040,
|
|
|
37 |
EMMFSampleRate88200Hz = 0x00000080,
|
|
|
38 |
EMMFSampleRate96000Hz = 0x00000100,
|
|
|
39 |
EMMFSampleRate12000Hz = 0x00000200,
|
|
|
40 |
EMMFSampleRate24000Hz = 0x00000400
|
|
|
41 |
};
|
|
|
42 |
|
|
|
43 |
/**
|
|
|
44 |
* Mono / stereo supported by MMF.
|
|
|
45 |
*/
|
|
|
46 |
enum TMMFMonoStereo
|
|
|
47 |
{
|
|
|
48 |
EMMFMono = 0x00000001,
|
|
|
49 |
EMMFStereo = 0x00000002
|
|
|
50 |
};
|
|
|
51 |
|
|
|
52 |
/**
|
|
|
53 |
* Sound encodings supported by MMF.
|
|
|
54 |
*/
|
|
|
55 |
enum TMMFSoundEncoding
|
|
|
56 |
{
|
|
|
57 |
EMMFSoundEncoding8BitPCM = 0x00000001,
|
|
|
58 |
EMMFSoundEncoding16BitPCM = 0x00000002,
|
|
|
59 |
EMMFSoundEncoding8BitALaw = 0x00000004,
|
|
|
60 |
EMMFSoundEncoding8BitMuLaw = 0x00000008
|
|
|
61 |
};
|
|
|
62 |
|
|
|
63 |
/**
|
|
|
64 |
* Stereo types supported by MMF.
|
|
|
65 |
*/
|
|
|
66 |
enum TMMFStereoSupport
|
|
|
67 |
{
|
|
|
68 |
EMMFNone = 0x00000000,
|
|
|
69 |
EMMFInterleavedOnly = 0x00000001,
|
|
|
70 |
EMMFNonInterleavedOnly = 0x00000002,
|
|
|
71 |
EMMFBothNonAndInterleaved = 0x00000003
|
|
|
72 |
};
|
|
|
73 |
|
|
|
74 |
enum TMMFState
|
|
|
75 |
{
|
|
|
76 |
/** Idle state.
|
|
|
77 |
*/
|
|
|
78 |
EMMFStateIdle,
|
|
|
79 |
/** The MMF is currently playing.
|
|
|
80 |
*/
|
|
|
81 |
EMMFStatePlaying,
|
|
|
82 |
/** The MMF is playing a tone.
|
|
|
83 |
*/
|
|
|
84 |
EMMFStateTonePlaying,
|
|
|
85 |
/** The MMF is currently playing tone.
|
|
|
86 |
*/
|
|
|
87 |
EMMFStateRecording,
|
|
|
88 |
/** The MMF is playing and recording.
|
|
|
89 |
*/
|
|
|
90 |
EMMFStatePlayingRecording,
|
|
|
91 |
/** The MMF is converting data.
|
|
|
92 |
*/
|
|
|
93 |
EMMFStateConverting
|
|
|
94 |
};
|
|
|
95 |
|
|
|
96 |
// Taken from dspbridge.h.
|
|
|
97 |
|
|
|
98 |
enum TDMSConnectionType
|
|
|
99 |
{
|
|
|
100 |
EDMSConnectionGpp,
|
|
|
101 |
EDMSConnectionTask,
|
|
|
102 |
EDMSConnectionDevice
|
|
|
103 |
};
|
|
|
104 |
|
|
|
105 |
/**
|
|
|
106 |
* Stream Transfer type
|
|
|
107 |
* This enumeration defines the transfer modes supported:
|
|
|
108 |
* 1. Processor copy mode (ETransferCpuCopy) and
|
|
|
109 |
* 2. Single copy DSP DMA (ETransferRemoteDma)
|
|
|
110 |
* 3. Zero-Copy mode (ETransferZeroCopy)
|
|
|
111 |
*
|
|
|
112 |
* Taken from dspbridge.h
|
|
|
113 |
*/
|
|
|
114 |
enum TDMSTransferType
|
|
|
115 |
{
|
|
|
116 |
ETransferTypeCpuCopy,
|
|
|
117 |
ETransferTypeRemoteDma,
|
|
|
118 |
ETransferTypeZeroCopy
|
|
|
119 |
};
|
|
|
120 |
|
|
|
121 |
enum EnableTrueOrFalse
|
|
|
122 |
{
|
|
|
123 |
EEnableFalse,
|
|
|
124 |
EEnableTrue
|
|
|
125 |
};
|
|
|
126 |
|
|
|
127 |
#endif // RESOURCEAUDIOENUMS_HRH
|
|
|
128 |
|
|
|
129 |
// End of File
|