[PyQt] Phonon, what im doing wrong?

Jozef K, dilinges at gmail.com
Mon Sep 8 22:20:46 BST 2008


Hi,

i'm trying to get some sounds from phonon but i get stuck on this error
message:

code:

        m_media=Phonon.MediaObject()


m_media.setCurrentSource(Phonon.MediaSource("/home/me/Dj_Lixx_-_A_Taste_Of_Diversity.mp3"))

        audio_out=Phonon.AudioOutput(Phonon.MusicCategory)

        Phonon.createPath(m_media,audio_out)

        m_media.play()

and i get error message:

    Phonon.createPath(m_media,audio_out)
TypeError: argument 2 of createPath() has an invalid type

what i'm doing wrong?

Thanks for any suggestion,

Dilinges
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080908/7d51b91a/attachment.html


More information about the PyQt mailing list