Results 1 to 4 of 4

Thread: Playing 2 wav files continously

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2010
    Location
    Cairo - Egypt
    Posts
    6
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Playing 2 wav files continously

    hi
    i need to play 2 files when first is finished start to play the other file.
    and here's the code
    Qt Code:
    1. static PyObject* playwave(PyObject* pSelf, PyObject* pArgs)
    2. {
    3. char* cWaveFile;
    4. int *iSkip;
    5. int *iFuture;
    6. PyArg_ParseTuple(pArgs, "sii", &cWaveFile, &iSkip, &iFuture);
    7. QString ster(cWaveFile);
    8. Phonon::MediaObject *music = NULL;
    9. music->setCurrentSource(Phonon::MediaSource(ster));
    10. music = Phonon::createPlayer(Phonon::MusicCategory, Phonon::MediaSource(ster));
    11. music->play();
    12. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by HanyM.Magdy; 5th October 2010 at 15:51.

Similar Threads

  1. playing a mp3 file ?
    By hcetiner in forum Newbie
    Replies: 1
    Last Post: 13th May 2010, 10:21
  2. QSound problem playing different wav files
    By couker in forum Qt Programming
    Replies: 6
    Last Post: 16th September 2009, 20:38
  3. Playing Media files in Qt 4
    By sar_van81 in forum Qt Programming
    Replies: 2
    Last Post: 18th December 2007, 05:53
  4. Playing mpegs
    By lewis in forum Qt Programming
    Replies: 9
    Last Post: 21st July 2006, 16:21
  5. Playing movies
    By yellowmat in forum Newbie
    Replies: 5
    Last Post: 29th March 2006, 14:07

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.