benskiedra
May 5th, 2010, 07:54 PM
Hello,
I'm using Qt 4.6.2 (+ phonon library) and I wanted to ask if it is possible to play the same sound multiple times without it being stopped? What I mean is, for example, to play "another" hit.mp3 which is, lets say, 2 seconds in length, exactly after playing one second of the previous "hit.mp3". I understand that this can be achieved by using multiple instances of MediaObject(s), but it is not what I'm trying to achieve.
The real-world example of my situation would be a pool game. Lets say it's the beginning of the game, you hit the cue ball and it hits a playable ball which hits other balls they correspondingly hit other ones and so on... After each hit event a sound "hit" should be played.
Is this possible without using multiple MediaObjects?
I'm using Qt 4.6.2 (+ phonon library) and I wanted to ask if it is possible to play the same sound multiple times without it being stopped? What I mean is, for example, to play "another" hit.mp3 which is, lets say, 2 seconds in length, exactly after playing one second of the previous "hit.mp3". I understand that this can be achieved by using multiple instances of MediaObject(s), but it is not what I'm trying to achieve.
The real-world example of my situation would be a pool game. Lets say it's the beginning of the game, you hit the cue ball and it hits a playable ball which hits other balls they correspondingly hit other ones and so on... After each hit event a sound "hit" should be played.
Is this possible without using multiple MediaObjects?