3D Audio GSoC:

GameEngine Python access sound actuator's sound (with setting! :-D).
This commit is contained in:
2011-06-16 09:13:29 +00:00
parent cfcc4b4fcd
commit a90d30c863
6 changed files with 86 additions and 1 deletions

View File

@@ -2881,6 +2881,19 @@ Factory_empty()
return FactoryType.tp_alloc(&FactoryType, 0);
}
Factory*
checkFactory(PyObject* factory)
{
if(!PyObject_TypeCheck(factory, &FactoryType))
{
PyErr_SetString(PyExc_TypeError, "Object is not of type Factory!");
return NULL;
}
return (Factory*)factory;
}
// ====================================================================
PyDoc_STRVAR(M_aud_doc,