Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/audaspace')
-rw-r--r--intern/audaspace/intern/AUD_PyInit.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/audaspace/intern/AUD_PyInit.cpp b/intern/audaspace/intern/AUD_PyInit.cpp
index df020ed5427..b40cce34dfb 100644
--- a/intern/audaspace/intern/AUD_PyInit.cpp
+++ b/intern/audaspace/intern/AUD_PyInit.cpp
@@ -66,6 +66,11 @@ static PyMethodDef meth_sound_from_pointer[] = {
PyObject *AUD_initPython(void)
{
PyObject *module = PyInit_aud();
+ if (module == NULL) {
+ printf("Unable to initialise audio\n");
+ return NULL;
+ }
+
PyModule_AddObject(module, "_sound_from_pointer", (PyObject *)PyCFunction_New(meth_sound_from_pointer, NULL));
PyDict_SetItemString(PyImport_GetModuleDict(), "aud", module);