Results 1 to 3 of 3

Thread: Multiple wav playback

  1. #1
    Join Date
    Sep 2010
    Posts
    14
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Maemo/MeeGo

    Default Multiple wav playback

    Hi,

    Is it possible to play multiple wav files at the same time? I have done a program which plays sounds from keyboard. It is based on the spectrum -example code with almost exactly identical playback code and wav -file handling. Now every new sound overruns the previous' playback. Any ideas how to enable some kind of polyphony?

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 268 Times in 268 Posts
    Wiki edits
    20

    Default Re: Multiple wav playback

    Try setting an audio output for each file

  3. #3
    Join Date
    Sep 2010
    Posts
    14
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Maemo/MeeGo

    Default Re: Multiple wav playback

    Hey thanks! Actually I tried that previously without results but your answer reminded me that each sound should of course have their own QBuffer. With these two changes I am now able to play these sounds without them interrupting each other!

Similar Threads

  1. Replies: 0
    Last Post: 22nd August 2010, 15:44
  2. Playback video on QT Widget
    By Ratheendrans in forum Qt for Embedded and Mobile
    Replies: 7
    Last Post: 1st June 2010, 14:44
  3. Phonon playback delay
    By jflatt in forum Qt Programming
    Replies: 2
    Last Post: 5th February 2010, 06:58
  4. 4.5 + video playback on windows
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 24th March 2009, 10:58
  5. Video freezes during mpeg video playback using Phonon
    By davejames in forum Qt Programming
    Replies: 2
    Last Post: 12th January 2009, 09:45

Tags for this Thread

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.