[Qt-jambi-interest] Standalone Phonon?
Erwin Mueller
devent.ml at deventm.org
Sat Aug 22 19:12:11 CEST 2009
On Sun, 23 Aug 2009 12:10:10 am Erwin Mueller wrote:
> Hi,
> it is possible to use only Phonon of Qt Jambi with a Swing application? I
> just tried it but I get some errors and I'm not sure if it's correct.
>
> I try it like that:
>
> QApplication app = new QApplication(new String[0]);
>
> QApplication.setApplicationName(Thread.currentThread().toString());
> File outputFile = new File("/tmp/toneplayer2513521231115613486wav");
>
> MediaObject mediaObject = new MediaObject(app);
> mediaObject.setCurrentSource(new MediaSource(outputFile
> .getAbsolutePath()));
> AudioOutput audioOutput = new AudioOutput(Category.MusicCategory, app);
> Path path = Phonon.createPath(mediaObject, audioOutput);
>
> mediaObject.play();
>
> QApplication.exec();
>
Ok, sorry, it have to be
QApplication.initialize(new String[0])
QApplication.setApplicationName(Thread.currentThread().toString())
...
mediaObject.play()
QApplication.exec()
Do anyone know what class files and libraries I can remove from the qtjambi-
xxxxx.jar to slim it down from 24 MBytes to something like 1MByte?
--
Erwin Mueller, erwin.mueller at deventm.org
http://www.global-scaling-institute.de/
http://www.deventm.org
More information about the Qt-jambi-interest
mailing list