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
This commit is contained in:
Joerg Mueller
2010-07-28 09:36:03 +00:00
parent 3e3f874a65
commit 7296600434
139 changed files with 1502 additions and 2428 deletions

View File

@@ -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&)
{