I can decode an ogg file with QAudioDecoder *m_decoder and i get a QAudioBuffer by doing m_decoder->read() in a slot called on signal bufferready.
But i can't pass this QAudioBuffer to QAudioOuput who need a QIODevice*
I think i may subclass QIODevice to give QAudioOutput the ability to read this QAudioBuffer. right ?
At this point, i don't know what to do
sorry for my poor english
If you call QAudioOutput::start() it will return an QIODevice instance you should write your audio frames to. So whenerver you have data in the buffer, just write it to the device returned by QAudioOutput.
Bookmarks