Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e5649c7

Browse files
committed
Removed {Set,Get}SoundVol (old calls not supported by cfm68k)
1 parent ee8662f commit e5649c7

2 files changed

Lines changed: 4 additions & 34 deletions

File tree

Mac/Modules/snd/Sndmodule.c

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -315,35 +315,6 @@ staticforward PyTypeObject SndChannel_Type = {
315315
/* ------------------- End object type SndChannel ------------------- */
316316

317317

318-
static PyObject *Snd_SetSoundVol(_self, _args)
319-
PyObject *_self;
320-
PyObject *_args;
321-
{
322-
PyObject *_res = NULL;
323-
short level;
324-
if (!PyArg_ParseTuple(_args, "h",
325-
&level))
326-
return NULL;
327-
SetSoundVol(level);
328-
Py_INCREF(Py_None);
329-
_res = Py_None;
330-
return _res;
331-
}
332-
333-
static PyObject *Snd_GetSoundVol(_self, _args)
334-
PyObject *_self;
335-
PyObject *_args;
336-
{
337-
PyObject *_res = NULL;
338-
short level;
339-
if (!PyArg_ParseTuple(_args, ""))
340-
return NULL;
341-
GetSoundVol(&level);
342-
_res = Py_BuildValue("h",
343-
level);
344-
return _res;
345-
}
346-
347318
static PyObject *Snd_SndNewChannel(_self, _args)
348319
PyObject *_self;
349320
PyObject *_args;
@@ -742,10 +713,6 @@ static PyObject *Snd_GetSoundHeaderOffset(_self, _args)
742713
}
743714

744715
static PyMethodDef Snd_methods[] = {
745-
{"SetSoundVol", (PyCFunction)Snd_SetSoundVol, 1,
746-
"(short level) -> None"},
747-
{"GetSoundVol", (PyCFunction)Snd_GetSoundVol, 1,
748-
"() -> (short level)"},
749716
{"SndNewChannel", (PyCFunction)Snd_SndNewChannel, 1,
750717
"(short synth, long init, PyObject* userRoutine) -> (SndChannelPtr chan)"},
751718
{"SndControl", (PyCFunction)Snd_SndControl, 1,

Mac/Modules/snd/sndscan.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,12 @@ def makeblacklistnames(self):
4444
'GetSoundPreference',
4545
'SetSoundPreference',
4646
'GetCompressionInfo',
47-
# And 3.1 calls, ditto...
47+
# Calls with void_ptr arguments (to be done).
4848
'SndGetInfo',
4949
'SndSetInfo',
50+
# And old calls that are no longer supported
51+
'SetSoundVol',
52+
'GetSoundVol',
5053

5154
]
5255

0 commit comments

Comments
 (0)