diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1995-10-09 23:12:22 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1995-10-09 23:12:22 (GMT) |
commit | d40f3c60ca39b76c518df368477baa7c338b139e (patch) | |
tree | e73aac880f4c930024cd48a6e0b607ec81bed537 /Mac/Modules/snd | |
parent | 732151473b9528302518c54a48e5767bc7746200 (diff) | |
download | cpython-d40f3c60ca39b76c518df368477baa7c338b139e.zip cpython-d40f3c60ca39b76c518df368477baa7c338b139e.tar.gz cpython-d40f3c60ca39b76c518df368477baa7c338b139e.tar.bz2 |
New universal headers
Diffstat (limited to 'Mac/Modules/snd')
-rw-r--r-- | Mac/Modules/snd/Sndmodule.c | 16 | ||||
-rw-r--r-- | Mac/Modules/snd/sndgen.py | 6 | ||||
-rw-r--r-- | Mac/Modules/snd/sndscan.py | 2 |
3 files changed, 13 insertions, 11 deletions
diff --git a/Mac/Modules/snd/Sndmodule.c b/Mac/Modules/snd/Sndmodule.c index 447f75d..1d91ec9 100644 --- a/Mac/Modules/snd/Sndmodule.c +++ b/Mac/Modules/snd/Sndmodule.c @@ -414,12 +414,12 @@ static PyObject *Snd_SndSoundManagerVersion(_self, _args) PyObject *_args; { PyObject *_res = NULL; - NumVersion _rv; + long _rv; if (!PyArg_ParseTuple(_args, "")) return NULL; _rv = SndSoundManagerVersion(); - _res = Py_BuildValue("O&", - NumVer_New, _rv); + _res = Py_BuildValue("l", + _rv); return _res; } @@ -479,12 +479,12 @@ static PyObject *Snd_MACEVersion(_self, _args) PyObject *_args; { PyObject *_res = NULL; - NumVersion _rv; + long _rv; if (!PyArg_ParseTuple(_args, "")) return NULL; _rv = MACEVersion(); - _res = Py_BuildValue("O&", - NumVer_New, _rv); + _res = Py_BuildValue("l", + _rv); return _res; } @@ -759,7 +759,7 @@ static PyMethodDef Snd_methods[] = { {"SndControl", (PyCFunction)Snd_SndControl, 1, "(short id) -> (SndCommand cmd)"}, {"SndSoundManagerVersion", (PyCFunction)Snd_SndSoundManagerVersion, 1, - "() -> (NumVersion _rv)"}, + "() -> (long _rv)"}, {"SndManagerStatus", (PyCFunction)Snd_SndManagerStatus, 1, "(short theLength) -> (SMStatus theStatus)"}, {"SndGetSysBeepState", (PyCFunction)Snd_SndGetSysBeepState, 1, @@ -767,7 +767,7 @@ static PyMethodDef Snd_methods[] = { {"SndSetSysBeepState", (PyCFunction)Snd_SndSetSysBeepState, 1, "(short sysBeepState) -> None"}, {"MACEVersion", (PyCFunction)Snd_MACEVersion, 1, - "() -> (NumVersion _rv)"}, + "() -> (long _rv)"}, {"Comp3to1", (PyCFunction)Snd_Comp3to1, 1, "(Buffer buffer, StateBlock state, unsigned long numChannels, unsigned long whichChannel) -> (Buffer buffer, StateBlock state)"}, {"Exp1to3", (PyCFunction)Snd_Exp1to3, 1, diff --git a/Mac/Modules/snd/sndgen.py b/Mac/Modules/snd/sndgen.py index c3a71c1..323f637 100644 --- a/Mac/Modules/snd/sndgen.py +++ b/Mac/Modules/snd/sndgen.py @@ -1,4 +1,4 @@ -# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Sound.h' +# Generated from 'Sap:CodeWarrior7:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Sound.h' f = SndFunction(void, 'SetSoundVol', (short, 'level', InMode), @@ -44,7 +44,7 @@ f = SndFunction(OSErr, 'SndControl', ) functions.append(f) -f = SndFunction(NumVersion, 'SndSoundManagerVersion', +f = SndFunction(long, 'SndSoundManagerVersion', ) functions.append(f) @@ -94,7 +94,7 @@ f = SndFunction(OSErr, 'SndSetSysBeepState', ) functions.append(f) -f = SndFunction(NumVersion, 'MACEVersion', +f = SndFunction(long, 'MACEVersion', ) functions.append(f) diff --git a/Mac/Modules/snd/sndscan.py b/Mac/Modules/snd/sndscan.py index ae52593..f28c48e 100644 --- a/Mac/Modules/snd/sndscan.py +++ b/Mac/Modules/snd/sndscan.py @@ -54,6 +54,8 @@ class SoundScanner(Scanner): "GetSoundVol", "SetSoundVol", "UnsignedFixed", + # Don't have the time to dig into this... + "Component", ] def makerepairinstructions(self): |