summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-08-19 10:59:44 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-08-19 10:59:44 (GMT)
commite5649c75f072bfb7e3ada737d57b2ab8e41f078b (patch)
treeca7316e2f14af395a071af0569676251205e444e
parentee8662febda4ac1ee9d3604e452220554c08ab23 (diff)
downloadcpython-e5649c75f072bfb7e3ada737d57b2ab8e41f078b.zip
cpython-e5649c75f072bfb7e3ada737d57b2ab8e41f078b.tar.gz
cpython-e5649c75f072bfb7e3ada737d57b2ab8e41f078b.tar.bz2
Removed {Set,Get}SoundVol (old calls not supported by cfm68k)
-rw-r--r--Mac/Modules/snd/Sndmodule.c33
-rw-r--r--Mac/Modules/snd/sndscan.py5
2 files changed, 4 insertions, 34 deletions
diff --git a/Mac/Modules/snd/Sndmodule.c b/Mac/Modules/snd/Sndmodule.c
index 65b84df..74951ce 100644
--- a/Mac/Modules/snd/Sndmodule.c
+++ b/Mac/Modules/snd/Sndmodule.c
@@ -315,35 +315,6 @@ staticforward PyTypeObject SndChannel_Type = {
/* ------------------- End object type SndChannel ------------------- */
-static PyObject *Snd_SetSoundVol(_self, _args)
- PyObject *_self;
- PyObject *_args;
-{
- PyObject *_res = NULL;
- short level;
- if (!PyArg_ParseTuple(_args, "h",
- &level))
- return NULL;
- SetSoundVol(level);
- Py_INCREF(Py_None);
- _res = Py_None;
- return _res;
-}
-
-static PyObject *Snd_GetSoundVol(_self, _args)
- PyObject *_self;
- PyObject *_args;
-{
- PyObject *_res = NULL;
- short level;
- if (!PyArg_ParseTuple(_args, ""))
- return NULL;
- GetSoundVol(&level);
- _res = Py_BuildValue("h",
- level);
- return _res;
-}
-
static PyObject *Snd_SndNewChannel(_self, _args)
PyObject *_self;
PyObject *_args;
@@ -742,10 +713,6 @@ static PyObject *Snd_GetSoundHeaderOffset(_self, _args)
}
static PyMethodDef Snd_methods[] = {
- {"SetSoundVol", (PyCFunction)Snd_SetSoundVol, 1,
- "(short level) -> None"},
- {"GetSoundVol", (PyCFunction)Snd_GetSoundVol, 1,
- "() -> (short level)"},
{"SndNewChannel", (PyCFunction)Snd_SndNewChannel, 1,
"(short synth, long init, PyObject* userRoutine) -> (SndChannelPtr chan)"},
{"SndControl", (PyCFunction)Snd_SndControl, 1,
diff --git a/Mac/Modules/snd/sndscan.py b/Mac/Modules/snd/sndscan.py
index 8db540a..249aa57 100644
--- a/Mac/Modules/snd/sndscan.py
+++ b/Mac/Modules/snd/sndscan.py
@@ -44,9 +44,12 @@ class SoundScanner(Scanner):
'GetSoundPreference',
'SetSoundPreference',
'GetCompressionInfo',
- # And 3.1 calls, ditto...
+ # Calls with void_ptr arguments (to be done).
'SndGetInfo',
'SndSetInfo',
+ # And old calls that are no longer supported
+ 'SetSoundVol',
+ 'GetSoundVol',
]