Are you on OS X ? QAudioDecoder is not supported here (sadly).


-------
Jean-Michaël Celerier
http://www.jcelerier.name

On Wed, Aug 31, 2016 at 10:28 AM, Alexander Dyagilev <alervd...@gmail.com>
wrote:

> Hello,
>
> I'm trying to decode an mp3 file. Getting ServiceMissingError ("The
> QAudioDecoder object does not have a valid service").
>
> At the same time QMediaPlayer can play the file.
>
> Am I doing something wrong?
>
> The code:
>
> QSharedPointer<QAudioDecoder> decoder(new QAudioDecoder());
>
> decoder->setSourceFilename("1.mp3");
>
> decoder->start();
>
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to