PDA

View Full Version : phonon Windows 7



Sachtech
9th November 2009, 06:06
Hi,

The following code works on Windows Xp and Vista but fails on Windows 7.



QBuffer* soundData3 = new QBuffer(mediaObject);

soundData3->setData(audiofile.readAll());
// Modify buffer data values keeping header same.

mediaObject->setCurrentSource( soundData3 );

mediaObject->play();

audiofile contains audio data (wav file). Reason I am not giving the file path to mediaobject source is that I need to modify buffer values in between.

Could someone let me know why it is not working of if there is a better method to do it. I am using Qt 4.5.2. and would not like to switch to 4.6 for some more time.

Thanks.