From 7296600434c49b40215ba842af73a8b1517e12eb Mon Sep 17 00:00:00 2001 From: Joerg Mueller Date: Wed, 28 Jul 2010 09:36:03 +0000 Subject: Audaspace: HUGE Refactor. Some points of the refactor not sorted by importance: * Fixed immutability of readers and factories (there are exceptions...) * Fixed copy constructors and = operators * Removed messaging system * Removed reader types * Added const where possible * Using initalisers when possible * Avoided use of pointers when possible * Removed AUD_NEW and AUD_DELETE macros * Removed useless NULL pointer checks * Fixed exception catching * Fixed some yet unknown bugs * Lots of other stuff --- intern/audaspace/Python/AUD_PyAPI.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'intern/audaspace/Python') diff --git a/intern/audaspace/Python/AUD_PyAPI.cpp b/intern/audaspace/Python/AUD_PyAPI.cpp index f1c41bf2009..30e4bf5b9fd 100644 --- a/intern/audaspace/Python/AUD_PyAPI.cpp +++ b/intern/audaspace/Python/AUD_PyAPI.cpp @@ -425,10 +425,10 @@ static PyTypeObject SoundType = { static PyObject * Sound_sine(PyObject* nothing, PyObject* args) { - double frequency; + float frequency; int rate = 44100; - if(!PyArg_ParseTuple(args, "d|i", &frequency, &rate)) + if(!PyArg_ParseTuple(args, "f|i", &frequency, &rate)) return NULL; Sound *self; @@ -1266,13 +1266,14 @@ Handle_set_loop_count(Handle *self, PyObject* args, void* nothing) try { + /* AUD_XXX Doesn't work atm, will come back AUD_Message message; message.loopcount = loops; message.type = AUD_MSG_LOOP; if(device->device->sendMessage(self->handle, message)) { return 0; - } + }*/ } catch(AUD_Exception&) { -- cgit v1.2.3