I'm using Windows to play a sound using QSound. It plays fine but I need some method for the program to halt until the sound stops.
Naturally I tried using the isfinished function but it always returns true:
Qt Code:
aa.play(); qDebug()<< aa.isFinished();To copy to clipboard, switch view to plain text mode
The sound lasts 10 seconds but the finished call returns true instantly. What is happening here?
Is there another way of doing what I want to achieve?
Bookmarks