PDA

View Full Version : play sound from a vector of doubles type



prabhatjha
24th January 2014, 12:08
I am looking to try and use QAudioOuput within my QT program.

I have data of vector of doubles now i want to get audiodevice to play this data.
but i have no idea how to do this ……….please help me to come out from this hell…….

thakns in advance……

prabhatjha
24th January 2014, 12:10
I am looking to try and use QAudioOuput within my QT program.

I have data of vector of doubles now i want to get audiodevice to play this data.
but i have no idea how to do this ……….please help me to come out from this hell…….
in matlab there are simple function wavwrite(filename) to play the sound but in qt how to do it....

thakns in advance…

sulliwk06
24th January 2014, 13:25
You could add a wav header to it and use QMediaPlayer to play the file. That's what I've done. The wav header isn't hard to generate at all.

ChrisW67
25th January 2014, 03:39
You and shivendra46d are not doing the same assignment by any freak coincidence?
http://www.qtcentre.org/threads/57732-Audio-player-to-play-an-array