1 |
nigel |
1.1 |
/* |
2 |
nigel |
1.4 |
* $Id: audio_defs_macosx.h,v 1.3 2005/01/30 21:42:13 gbeauche Exp $ |
3 |
nigel |
1.1 |
* |
4 |
|
|
* audio_defs_macosx.h - Work around clashes with the enums in <CarbonCore/OSUtils.h> |
5 |
|
|
* Based on: |
6 |
|
|
* |
7 |
|
|
* audio_defs.h - Definitions for MacOS audio components |
8 |
|
|
* |
9 |
nigel |
1.4 |
* Basilisk II (C) 1997-2006 Christian Bauer |
10 |
nigel |
1.1 |
* |
11 |
|
|
* This program is free software; you can redistribute it and/or modify |
12 |
|
|
* it under the terms of the GNU General Public License as published by |
13 |
|
|
* the Free Software Foundation; either version 2 of the License, or |
14 |
|
|
* (at your option) any later version. |
15 |
|
|
* |
16 |
|
|
* This program is distributed in the hope that it will be useful, |
17 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 |
|
|
* GNU General Public License for more details. |
20 |
|
|
* |
21 |
|
|
* You should have received a copy of the GNU General Public License |
22 |
|
|
* along with this program; if not, write to the Free Software |
23 |
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 |
|
|
*/ |
25 |
|
|
|
26 |
|
|
#ifndef AUDIO_DEFS_H |
27 |
|
|
#define AUDIO_DEFS_H |
28 |
|
|
|
29 |
|
|
#include "macos_util_macosx.h" |
30 |
|
|
|
31 |
|
|
enum { // ComponentResource struct |
32 |
|
|
componentType = 0, |
33 |
|
|
componentSubType = 4, |
34 |
|
|
componentManufacturer = 8, |
35 |
|
|
componentFlags = 12, |
36 |
|
|
componentFlagsMask = 16, |
37 |
|
|
componentResType = 20, |
38 |
|
|
componentResID = 24, |
39 |
|
|
componentNameType = 26, |
40 |
|
|
componentNameID = 30, |
41 |
|
|
componentInfoType = 32, |
42 |
|
|
componentInfoID = 36, |
43 |
|
|
componentIconType = 38, |
44 |
|
|
componentIconID = 42, |
45 |
|
|
componentVersion = 44, |
46 |
|
|
componentRegisterFlags = 48, |
47 |
|
|
componentIconFamily = 52, |
48 |
|
|
componentPFCount = 54, |
49 |
|
|
componentPFFlags = 58, |
50 |
|
|
componentPFResType = 62, |
51 |
|
|
componentPFResID = 66, |
52 |
|
|
componentPFPlatform = 68 |
53 |
|
|
}; |
54 |
|
|
|
55 |
|
|
|
56 |
|
|
enum { // ComponentParameters struct |
57 |
|
|
cp_flags = 0, // call modifiers: sync/async, deferred, immed, etc |
58 |
|
|
cp_paramSize = 1, // size in bytes of actual parameters passed to this call |
59 |
|
|
cp_what = 2, // routine selector, negative for Component management calls |
60 |
|
|
cp_params = 4 // actual parameters for the indicated routine |
61 |
|
|
}; |
62 |
|
|
|
63 |
|
|
enum { // SoundComponentData struct |
64 |
|
|
scd_flags = 0, |
65 |
|
|
scd_format = 4, |
66 |
|
|
scd_numChannels = 8, |
67 |
|
|
scd_sampleSize = 10, |
68 |
|
|
scd_sampleRate = 12, |
69 |
|
|
scd_sampleCount = 16, |
70 |
|
|
scd_buffer = 20, |
71 |
|
|
scd_reserved = 24, |
72 |
|
|
SIZEOF_scd = 28 |
73 |
|
|
}; |
74 |
|
|
|
75 |
|
|
enum { // SoundInfoList struct |
76 |
|
|
sil_count = 0, |
77 |
|
|
sil_infoHandle = 2 |
78 |
|
|
}; |
79 |
|
|
|
80 |
|
|
#endif |