PDA

View Full Version : URGENT : QMultimedia : get the datas of a RAW (audio) file.



fitzy
4th July 2010, 11:19
Hello !

The sound datas are stored into the RAW file as Signed Integers.

But the datas look like this :


þûþýþûþûþúþøà ¾Ã¸Ã¾Ã·Ã¾Ã¸Ã¾Ã¹Ã¾Ã¸Ã¾Ã¶Ã¾ õþóþòþñþðþðþà °Ã¾Ã¾Ã€Ã¾ÃÃ¾ÃÃ¾Â¿Ã¾Â»Ã ºþºþ»þ»þ¹þ¸þ ·Ã¾Â´Ã¾Â²Ã¾Â±Ã¾Â¯Ã¾Â¯Ã¾Â þ*þ«þ©þ©þªþªþ ¨þ§þ¥þ¢þ¡þ*þŸ ¾Å¾Ã¾Å“þšþ™þ™þ ™þ—þ”þ”þ†Ã¾â€œÃ¾ÂÃ¾Å’þŒþ‹ Ã¾Å’Ã¾â€¹Ã¾â€°Ã¾â€ Ã¾Æ Ã¾â€ž

How can I get the values of the integers ?
I think that a QAudioInfo (cf. readData/writeData) might do it, but I don't know how to use it ! :(
(I already checked the documentation)

Please help !

tbscope
4th July 2010, 11:54
I couldn't find any reference to QAudioInfo in the documentation.

There's a spectrum analyzer example that makes use of the raw data.
http://qt.gitorious.org/qt/qt/trees/4.6/demos/spectrum

fitzy
4th July 2010, 12:58
sorry I meant QAudioDeviceInfo
thanks for the link, I'll study that

squidge
4th July 2010, 13:43
A small note: Marking a thread as "urgent" typically has the opposite effect. You are not paying for support so people will take insult which may mean you get fewer answers.