[Qt-interest] High CPU Usage With QAudioOutput

Gabriel M. Beddingfield gabrbedd at gmail.com
Wed Apr 6 18:25:00 CEST 2011



On Wed, 6 Apr 2011, Barnes, Clifton A. wrote:

>> Also, if you're really just wanting phonon-like media
>> playback... you should check out QMediaPlayer.  QAudioOutput
>> is really for low-level stuff (like if you're writing a
>> synthesizer or sampler something).
>
> All I need is to simply play a sound.

Then you want QMediaPlayer.  That's what it's for.  (Give it 
a try, at least.)

QAudioOutput is for non-simple applications.

> Would it make more
> sense to just use a raw audio file with QAudioOutput instead
> of a .wav?

It doesn't just make sense, it's required.  Or you can use 
something like libsndfile to convert from .wav to PCM.

-gabriel




More information about the Qt-interest-old mailing list