hi
i need to play 2 files when first is finished start to play the other file.
and here's the code
static PyObject* playwave(PyObject* pSelf, PyObject* pArgs)
{
char* cWaveFile;
int *iSkip;
int *iFuture;
PyArg_ParseTuple(pArgs, "sii", &cWaveFile, &iSkip, &iFuture);
Phonon::MediaObject *music = NULL;
music->setCurrentSource(Phonon::MediaSource(ster));
music = Phonon::createPlayer(Phonon::MusicCategory, Phonon::MediaSource(ster));
music->play();
}
static PyObject* playwave(PyObject* pSelf, PyObject* pArgs)
{
char* cWaveFile;
int *iSkip;
int *iFuture;
PyArg_ParseTuple(pArgs, "sii", &cWaveFile, &iSkip, &iFuture);
QString ster(cWaveFile);
Phonon::MediaObject *music = NULL;
music->setCurrentSource(Phonon::MediaSource(ster));
music = Phonon::createPlayer(Phonon::MusicCategory, Phonon::MediaSource(ster));
music->play();
}
To copy to clipboard, switch view to plain text mode
Bookmarks