PDA

View Full Version : playing mp3 file with QSound



highlightsong
15th July 2008, 13:00
HI

im trying to play mp3(or other sound format except .wav) using QSound.

but when i looked a book about Qt,

it was written that only .wav file is available when use QSound in Windows.

so i wonder whether playing other sound format is possible or not.

plz help me

aamer4yu
15th July 2008, 13:06
You can search for Phonon in Qt 4.4
There is also a media player example which probably plays mp3 files :)
But Phonon requires DirectX SDk installed if u are using windows. Be sure phonon is installed on ur system first

highlightsong
15th July 2008, 13:10
Sorry but my version is Qt 3.2.1

So I wonder about MY Qt

Because our team members' version is same with me

jpn
15th July 2008, 18:40
No, it is not possible to play MP3 files with QSound.

sadjoker
6th August 2008, 09:24
irrKlang currently plays back the following file formats:

* RIFF WAVE (*.wav)
* Ogg Vorbis (*.ogg)
* MPEG-1 Audio Layer 3 (*.mp3)[2]
* Amiga Modules (*.mod)
* Impulse Tracker (*.it)
* Scream Tracker 3 (*.s3d)
* Fast Tracker 2 (*.xm)

In addition, it is easily possible to extend the playable file formats using plugins. If you need irrKlang to playback a file format it doesn't support yet, just contact us and we can add it for you.

http://www.ambiera.com/irrklang/features.html#formats

Very easy library from the author of 3D engine Irrlicht. It has free non commercial and commercial licenses. Downloaded, added and playing ogg files for 3minutes. :D