[Qt-interest] using resources in phonon

Tiago Correia tiago at cnotinfor.pt
Tue Dec 16 16:10:08 CET 2008


Hi,

Maybe you could open the File first, read it to a buffer, and use the buffer
as the source for the playing in Phonon.

I'm having a similiar problem with a MPG file on Windows, and using the a
QBuffer didn't solve the problem. Maybe in your case it works. I'm still
using version 4.4.2

On Tue, Dec 16, 2008 at 2:58 PM, Boudewijn Rempt <boud at valdyas.org> wrote:

> On Tue, 16 Dec 2008, Richard wrote:
>
> > I tested your example on Mac, and indeed, it failed. If I tried a file
> > with a different encoding (e.g. mp3), it worked.
>
> Sounds like somehow phonon cannot detect that this is a wav file if it
> comes from the resource bundle. Weirdly enough, if it comes from the file
> system, it's not a problem.
>
> Boudewijn
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



-- 
Tiago Correia
chief technology officer

cnoti inovação & desenvolvimento – Aprendizagem enRiquecida pela Tecnologia
www.cnotinfor.pt
Telefone: +351 239 499 231

Subscreva gratuitamente a nossa Newsletter BICA – Boletim informativo de
Interactividade, Comunicação e Aprendizagem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081216/08ebc39b/attachment.html 


More information about the Qt-interest-old mailing list