X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de3ac0f5c872e87ae58c907a19142a8d0dd24f6c..4b60a5d70f7178960fa9c4de09c2bb13d6d7d04d:/wxPython/src/_sound.i?ds=sidebyside diff --git a/wxPython/src/_sound.i b/wxPython/src/_sound.i index f82c444df1..5569a08bfe 100644 --- a/wxPython/src/_sound.i +++ b/wxPython/src/_sound.i @@ -85,7 +85,8 @@ public: else return new wxSound(fileName); } - %name(SoundFromData) wxSound(PyObject* data) { + %RenameCtor(SoundFromData, wxSound(PyObject* data)) + { unsigned char* buffer; int size; wxSound *sound = NULL; @@ -110,7 +111,7 @@ public: %#ifndef __WXMAC__ unsigned char* buffer; int size; - bool rv = False; + bool rv = false; bool blocked = wxPyBeginBlockThreads(); if (!PyArg_Parse(data, "t#", &buffer, &size)) @@ -124,7 +125,7 @@ public: PyErr_SetString(PyExc_NotImplementedError, "Create from data is not available on this platform."); wxPyEndBlockThreads(blocked); - return False; + return false; %#endif } } @@ -135,7 +136,7 @@ public: bool Play(unsigned flags = wxSOUND_ASYNC) const; // Plays sound from filename: - %name(PlaySound) static bool Play(const wxString& filename, unsigned flags = wxSOUND_ASYNC); + %Rename(PlaySound, static bool, Play(const wxString& filename, unsigned flags = wxSOUND_ASYNC)); #ifndef __WXMAC__ static void Stop();