blob: 8e02f29129a260bdd2f5dbe2d13aad72b006bd50 [file] [log] [blame]
Guido van Rossum17448e21995-01-30 11:53:55 +00001# Generated from 'D:Development:THINK C:Mac #includes:Apple #includes:Sound.h'
2
3f = SndMethod(OSErr, 'SndDoCommand',
4 (SndChannelPtr, 'chan', InMode),
5 (SndCommand_ptr, 'cmd', InMode),
6 (Boolean, 'noWait', InMode),
7)
8sndmethods.append(f)
9
10f = SndMethod(OSErr, 'SndDoImmediate',
11 (SndChannelPtr, 'chan', InMode),
12 (SndCommand_ptr, 'cmd', InMode),
13)
14sndmethods.append(f)
15
16f = SndFunction(OSErr, 'SndNewChannel',
17 (SndChannelPtr, 'chan', OutMode),
18 (short, 'synth', InMode),
19 (long, 'init', InMode),
20 (SndCallBackProcPtr, 'userRoutine', InMode),
21)
22functions.append(f)
23
24f = SndMethod(OSErr, 'SndPlay',
25 (SndChannelPtr, 'chan', InMode),
26 (SndListHandle, 'sndHdl', InMode),
27 (Boolean, 'async', InMode),
28)
29sndmethods.append(f)
30
31f = SndFunction(OSErr, 'SndControl',
32 (short, 'id', InMode),
33 (SndCommand, 'cmd', OutMode),
34)
35functions.append(f)
36
37f = SndFunction(void, 'SetSoundVol',
38 (short, 'level', InMode),
39)
40functions.append(f)
41
42f = SndFunction(void, 'GetSoundVol',
43 (short, 'level', OutMode),
44)
45functions.append(f)
46
47f = SndFunction(NumVersion, 'SndSoundManagerVersion',
48)
49functions.append(f)
50
51f = 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 (ProcPtr, 'theCompletion', InMode),
59 (Boolean, 'async', InMode),
60)
61sndmethods.append(f)
62
63f = SndMethod(OSErr, 'SndPauseFilePlay',
64 (SndChannelPtr, 'chan', InMode),
65)
66sndmethods.append(f)
67
68f = SndMethod(OSErr, 'SndStopFilePlay',
69 (SndChannelPtr, 'chan', InMode),
70 (Boolean, 'async', InMode),
71)
72sndmethods.append(f)
73
74f = SndMethod(OSErr, 'SndChannelStatus',
75 (SndChannelPtr, 'chan', InMode),
76 (short, 'theLength', InMode),
77 (SCStatus, 'theStatus', OutMode),
78)
79sndmethods.append(f)
80
81f = SndFunction(OSErr, 'SndManagerStatus',
82 (short, 'theLength', InMode),
83 (SMStatus, 'theStatus', OutMode),
84)
85functions.append(f)
86
87f = SndFunction(void, 'SndGetSysBeepState',
88 (short, 'sysBeepState', OutMode),
89)
90functions.append(f)
91
92f = SndFunction(OSErr, 'SndSetSysBeepState',
93 (short, 'sysBeepState', InMode),
94)
95functions.append(f)
96
97f = SndFunction(NumVersion, 'MACEVersion',
98)
99functions.append(f)
100
101f = SndFunction(void, 'Comp3to1',
102 (InOutBuffer, 'buffer', InOutMode),
103 (InOutBuf128, 'state', InOutMode),
104 (unsigned_long, 'numChannels', InMode),
105 (unsigned_long, 'whichChannel', InMode),
106)
107functions.append(f)
108
109f = SndFunction(void, 'Exp1to3',
110 (InOutBuffer, 'buffer', InOutMode),
111 (InOutBuf128, 'state', InOutMode),
112 (unsigned_long, 'numChannels', InMode),
113 (unsigned_long, 'whichChannel', InMode),
114)
115functions.append(f)
116
117f = SndFunction(void, 'Comp6to1',
118 (InOutBuffer, 'buffer', InOutMode),
119 (InOutBuf128, 'state', InOutMode),
120 (unsigned_long, 'numChannels', InMode),
121 (unsigned_long, 'whichChannel', InMode),
122)
123functions.append(f)
124
125f = SndFunction(void, 'Exp1to6',
126 (InOutBuffer, 'buffer', InOutMode),
127 (InOutBuf128, 'state', InOutMode),
128 (unsigned_long, 'numChannels', InMode),
129 (unsigned_long, 'whichChannel', InMode),
130)
131functions.append(f)
Guido van Rossum227a4231995-03-10 14:42:57 +0000132