diff options
author | Joerg Mueller <nexyon@gmail.com> | 2011-07-30 20:24:11 +0400 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2011-07-30 20:24:11 +0400 |
commit | 4b5a371b65ca829cc169692e6ac1f78574531303 (patch) | |
tree | cd1200d4092af0b24855948baebd535bd47e9780 /intern/audaspace/Python | |
parent | 73183abfa98eeda9fb7deff8165a04ca6a28635d (diff) |
3D Audio GSoC:
* Fix for sequencer strip IDs, only one strip played.
* Fix for PyAPI sample rate.
* Enhanced Double Reader to return more data if possible.
Diffstat (limited to 'intern/audaspace/Python')
-rw-r--r-- | intern/audaspace/Python/AUD_PyAPI.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/audaspace/Python/AUD_PyAPI.cpp b/intern/audaspace/Python/AUD_PyAPI.cpp index 12bb19644f0..94e02576ccc 100644 --- a/intern/audaspace/Python/AUD_PyAPI.cpp +++ b/intern/audaspace/Python/AUD_PyAPI.cpp @@ -144,9 +144,9 @@ static PyObject * Factory_sine(PyTypeObject* type, PyObject* args) { float frequency; - int rate = 44100; + double rate = 44100; - if(!PyArg_ParseTuple(args, "f|i:sine", &frequency, &rate)) + if(!PyArg_ParseTuple(args, "f|d:sine", &frequency, &rate)) return NULL; Factory *self; @@ -2313,7 +2313,7 @@ Device_get_rate(Device *self, void* nothing) try { AUD_DeviceSpecs specs = (*reinterpret_cast<AUD_Reference<AUD_IDevice>*>(self->device))->getSpecs(); - return Py_BuildValue("i", specs.rate); + return Py_BuildValue("d", specs.rate); } catch(AUD_Exception& e) { |