suizokukan
suizokukan

Reputation: 1379

play an extract of a sound file

I'm working on Python3, Qt4/Qt5 project and I'm stuck with the problem of playing an extract from a sound file, something like "play from 1.32 to 2.25 seconds". From the documentation QSound class doesn't allow to do so. Am I right ? Should I try using Phonon by example ?

I have the possibility to slice my main file into several small files (by example, 1_32__2_25.wav) but I want to be sure there is no other possibility.

P.S. : Phonon isn't available anymore in Qt 5.2.

Upvotes: 0

Views: 112

Answers (1)

Googie
Googie

Reputation: 6067

Use QMediaPlayer and its setPosition() method.

Upvotes: 1

Related Questions