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/Python')
-rw-r--r--intern/audaspace/Python/AUD_PyAPI.cpp7
1 files changed, 4 insertions, 3 deletions
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&)
{