Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
4.7.2
-
None
-
Ubuntu 11.04
Description
When I use Phonon::AudioDataOutput to get the raw of the audio the audio output doesn't works as expected, the sound outs with glitches like the buffer has latency.
// Code extracted from http://gitorious.org/simpleplayer/simpleplayer/archive-tarball/master // sample code that occurs. int main(int argc, char * argv[]) { QApplication app(argc, argv); app.setApplicationName("simpleplayer"); Phonon::AudioOutput output(Phonon::MusicCategory, &app); Phonon::MediaObject media(&app); media.connect(&media, SIGNAL(finished()), &app, SLOT(quit())); Phonon::AudioDataOutput dataout(&app); Phonon::createPath(&media, &dataout); Phonon::createPath(&dataout, &output); media.setCurrentSource(app.arguments().at(1)); media.play(); return app.exec(); }
***********************************************
// sample code that no occurs. int main(int argc, char * argv[]) { QApplication app(argc, argv); app.setApplicationName("simpleplayer"); Phonon::AudioOutput output(Phonon::MusicCategory, &app); Phonon::MediaObject media(&app); media.connect(&media, SIGNAL(finished()), &app, SLOT(quit())); // Phonon::AudioDataOutput dataout(&app); // Phonon::createPath(&media, &dataout); // Phonon::createPath(&dataout, &output); Phonon::createPath(&media, &output); media.setCurrentSource(app.arguments().at(1)); media.play(); return app.exec(); }