mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Removed {Set,Get}SoundVol (old calls not supported by cfm68k)
This commit is contained in:
parent
ee8662febd
commit
e5649c75f0
2 changed files with 4 additions and 34 deletions
|
|
@ -315,35 +315,6 @@ staticforward PyTypeObject SndChannel_Type = {
|
||||||
/* ------------------- End object type SndChannel ------------------- */
|
/* ------------------- 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)
|
static PyObject *Snd_SndNewChannel(_self, _args)
|
||||||
PyObject *_self;
|
PyObject *_self;
|
||||||
PyObject *_args;
|
PyObject *_args;
|
||||||
|
|
@ -742,10 +713,6 @@ static PyObject *Snd_GetSoundHeaderOffset(_self, _args)
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyMethodDef Snd_methods[] = {
|
static PyMethodDef Snd_methods[] = {
|
||||||
{"SetSoundVol", (PyCFunction)Snd_SetSoundVol, 1,
|
|
||||||
"(short level) -> None"},
|
|
||||||
{"GetSoundVol", (PyCFunction)Snd_GetSoundVol, 1,
|
|
||||||
"() -> (short level)"},
|
|
||||||
{"SndNewChannel", (PyCFunction)Snd_SndNewChannel, 1,
|
{"SndNewChannel", (PyCFunction)Snd_SndNewChannel, 1,
|
||||||
"(short synth, long init, PyObject* userRoutine) -> (SndChannelPtr chan)"},
|
"(short synth, long init, PyObject* userRoutine) -> (SndChannelPtr chan)"},
|
||||||
{"SndControl", (PyCFunction)Snd_SndControl, 1,
|
{"SndControl", (PyCFunction)Snd_SndControl, 1,
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,12 @@ class SoundScanner(Scanner):
|
||||||
'GetSoundPreference',
|
'GetSoundPreference',
|
||||||
'SetSoundPreference',
|
'SetSoundPreference',
|
||||||
'GetCompressionInfo',
|
'GetCompressionInfo',
|
||||||
# And 3.1 calls, ditto...
|
# Calls with void_ptr arguments (to be done).
|
||||||
'SndGetInfo',
|
'SndGetInfo',
|
||||||
'SndSetInfo',
|
'SndSetInfo',
|
||||||
|
# And old calls that are no longer supported
|
||||||
|
'SetSoundVol',
|
||||||
|
'GetSoundVol',
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue