/*DOC*/ "This will load a music file and queue it. A queued music file\n"
/*DOC*/ "will begin as soon as the current music naturally ends. If the\n"
/*DOC*/ "current music is ever stopped or changed, the queued song will\n"
+ /*DOC*/ "be lost. If loading the queued song fails, the currently queued\n"
+ /*DOC*/ "song will not be replaced.\n"
static PyObject* music_queue(PyObject* self, PyObject* args)
if(!PyArg_ParseTuple(args, "s", &filename))
+ new_music = Mix_LoadMUS(filename);
+ return RAISE(PyExc_SDLError, SDL_GetError());
- queue_music = Mix_LoadMUS(filename);
+ queue_music = new_music;