Added ref to Misc/NEWS file; added hint to run regen script on Linux.
[python/dscho.git] / Mac / Modules / snd / sndgen.py
blob323f63713d94a580271a417443caa41558bcbf24
1 # Generated from 'Sap:CodeWarrior7:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Sound.h'
3 f = SndFunction(void, 'SetSoundVol',
4 (short, 'level', InMode),
6 functions.append(f)
8 f = SndFunction(void, 'GetSoundVol',
9 (short, 'level', OutMode),
11 functions.append(f)
13 f = SndMethod(OSErr, 'SndDoCommand',
14 (SndChannelPtr, 'chan', InMode),
15 (SndCommand_ptr, 'cmd', InMode),
16 (Boolean, 'noWait', InMode),
18 sndmethods.append(f)
20 f = SndMethod(OSErr, 'SndDoImmediate',
21 (SndChannelPtr, 'chan', InMode),
22 (SndCommand_ptr, 'cmd', InMode),
24 sndmethods.append(f)
26 f = SndFunction(OSErr, 'SndNewChannel',
27 (SndChannelPtr, 'chan', OutMode),
28 (short, 'synth', InMode),
29 (long, 'init', InMode),
30 (SndCallBackUPP, 'userRoutine', InMode),
32 functions.append(f)
34 f = SndMethod(OSErr, 'SndPlay',
35 (SndChannelPtr, 'chan', InMode),
36 (SndListHandle, 'sndHdl', InMode),
37 (Boolean, 'async', InMode),
39 sndmethods.append(f)
41 f = SndFunction(OSErr, 'SndControl',
42 (short, 'id', InMode),
43 (SndCommand, 'cmd', OutMode),
45 functions.append(f)
47 f = SndFunction(long, 'SndSoundManagerVersion',
49 functions.append(f)
51 f = SndMethod(OSErr, 'SndStartFilePlay',
52 (SndChannelPtr, 'chan', InMode),
53 (short, 'fRefNum', InMode),
54 (short, 'resNum', InMode),
55 (long, 'bufferSize', InMode),
56 (FakeType('0'), 'theBuffer', InMode),
57 (AudioSelectionPtr, 'theSelection', InMode),
58 (FilePlayCompletionUPP, 'theCompletion', InMode),
59 (Boolean, 'async', InMode),
61 sndmethods.append(f)
63 f = SndMethod(OSErr, 'SndPauseFilePlay',
64 (SndChannelPtr, 'chan', InMode),
66 sndmethods.append(f)
68 f = SndMethod(OSErr, 'SndStopFilePlay',
69 (SndChannelPtr, 'chan', InMode),
70 (Boolean, 'quietNow', InMode),
72 sndmethods.append(f)
74 f = SndMethod(OSErr, 'SndChannelStatus',
75 (SndChannelPtr, 'chan', InMode),
76 (short, 'theLength', InMode),
77 (SCStatus, 'theStatus', OutMode),
79 sndmethods.append(f)
81 f = SndFunction(OSErr, 'SndManagerStatus',
82 (short, 'theLength', InMode),
83 (SMStatus, 'theStatus', OutMode),
85 functions.append(f)
87 f = SndFunction(void, 'SndGetSysBeepState',
88 (short, 'sysBeepState', OutMode),
90 functions.append(f)
92 f = SndFunction(OSErr, 'SndSetSysBeepState',
93 (short, 'sysBeepState', InMode),
95 functions.append(f)
97 f = SndFunction(long, 'MACEVersion',
99 functions.append(f)
101 f = SndFunction(void, 'Comp3to1',
102 (InOutBuffer, 'buffer', InOutMode),
103 (StateBlock, 'state', InOutMode),
104 (unsigned_long, 'numChannels', InMode),
105 (unsigned_long, 'whichChannel', InMode),
107 functions.append(f)
109 f = SndFunction(void, 'Exp1to3',
110 (InOutBuffer, 'buffer', InOutMode),
111 (StateBlock, 'state', InOutMode),
112 (unsigned_long, 'numChannels', InMode),
113 (unsigned_long, 'whichChannel', InMode),
115 functions.append(f)
117 f = SndFunction(void, 'Comp6to1',
118 (InOutBuffer, 'buffer', InOutMode),
119 (StateBlock, 'state', InOutMode),
120 (unsigned_long, 'numChannels', InMode),
121 (unsigned_long, 'whichChannel', InMode),
123 functions.append(f)
125 f = SndFunction(void, 'Exp1to6',
126 (InOutBuffer, 'buffer', InOutMode),
127 (StateBlock, 'state', InOutMode),
128 (unsigned_long, 'numChannels', InMode),
129 (unsigned_long, 'whichChannel', InMode),
131 functions.append(f)
133 f = SndFunction(OSErr, 'GetSysBeepVolume',
134 (long, 'level', OutMode),
136 functions.append(f)
138 f = SndFunction(OSErr, 'SetSysBeepVolume',
139 (long, 'level', InMode),
141 functions.append(f)
143 f = SndFunction(OSErr, 'GetDefaultOutputVolume',
144 (long, 'level', OutMode),
146 functions.append(f)
148 f = SndFunction(OSErr, 'SetDefaultOutputVolume',
149 (long, 'level', InMode),
151 functions.append(f)
153 f = SndFunction(OSErr, 'GetSoundHeaderOffset',
154 (SndListHandle, 'sndHandle', InMode),
155 (long, 'offset', OutMode),
157 functions.append(f)