No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
tdelibs/arts/kde
Timothy Pearson ed99a30644
Rename additional header files to avoid conflicts with KDE4
hace 11 años
..
mcop-dcop Rename additional header files to avoid conflicts with KDE4 hace 11 años
CMakeLists.txt Rename a number of libraries and executables to avoid conflicts with KDE4 hace 11 años
Makefile.am Rename additional instances of KDE to TDE hace 13 años
README Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
artskde.idl Rename KServer, KSocket, KIO_EXPORT, KIOInput, KIOJob, KIOConfig, KIOBuffer, and KBuffer to avoid conflicts with KDE4 hace 11 años
kartsdispatcher.cc Trinity Qt initial conversion hace 14 años
kartsdispatcher.h Additional renaming of kde to tde hace 13 años
kartsfloatwatch.cpp Trinity Qt initial conversion hace 14 años
kartsfloatwatch.h Trinity Qt initial conversion hace 14 años
kartsserver.cpp Rename KStandard for enhanced compatibility with KDE4 hace 11 años
kartsserver.h Additional renaming of kde to tde hace 13 años
kaudioconverter.cc Rename common header files for consistency with class renaming hace 11 años
kaudioconverter.h Initial conversion for TQt for Qt4 3.4.0 TP2 hace 13 años
kaudiomanagerplay.cpp Trinity Qt initial conversion hace 14 años
kaudiomanagerplay.h Additional renaming of kde to tde hace 13 años
kaudioplaystream.cpp Rename additional header files to avoid conflicts with KDE4 hace 11 años
kaudioplaystream.h Additional renaming of kde to tde hace 13 años
kaudioplaystream_p.h Trinity Qt initial conversion hace 14 años
kaudiorecordstream.cpp Rename additional header files to avoid conflicts with KDE4 hace 11 años
kaudiorecordstream.h Additional renaming of kde to tde hace 13 años
kaudiorecordstream_p.h Trinity Qt initial conversion hace 14 años
kconverttest.cc Rename additional header files to avoid conflicts with KDE4 hace 11 años
kconverttest.h Initial conversion for TQt for Qt4 3.4.0 TP2 hace 13 años
kdatarequest_impl.cpp Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
kdatarequest_impl.h Trinity Qt initial conversion hace 14 años
kioinputstream_impl.cpp Rename common header files for consistency with class renaming hace 11 años
kioinputstream_impl.h Rename a number of libraries and executables to avoid conflicts with KDE4 hace 11 años
kiotest.cc Rename additional header files to avoid conflicts with KDE4 hace 11 años
kiotestslow.cc Rename additional header files to avoid conflicts with KDE4 hace 11 años
kplayobject.cc Rename old tq methods that no longer need a unique name hace 13 años
kplayobject.h Rename KServer, KSocket, KIO_EXPORT, KIOInput, KIOJob, KIOConfig, KIOBuffer, and KBuffer to avoid conflicts with KDE4 hace 11 años
kplayobjectcreator.cc Rename a number of libraries and executables to avoid conflicts with KDE4 hace 11 años
kplayobjectcreator.h Rename KServer, KSocket, KIO_EXPORT, KIOInput, KIOJob, KIOConfig, KIOBuffer, and KBuffer to avoid conflicts with KDE4 hace 11 años
kplayobjectfactory.cc Fix a few remaining references to kio_ hace 11 años
kplayobjectfactory.h Additional renaming of kde to tde hace 13 años
kplayobjectfactory_p.h Initial conversion for TQt for Qt4 3.4.0 TP2 hace 13 años
kvideowidget.cpp Rename additional header files to avoid conflicts with KDE4 hace 11 años
kvideowidget.h Use non-tq sizeHint functions to fix bindings hace 13 años

README

libartskde Introduction
-----------------------

1. What is libartskde?
libartskde is a simple KDE->aRts wrapper
that allows the developer to use KDE
technology to access aRts.
ie. no need to deal with std::string's anymore
etc.. you can just use QString's or KURL's
to play sound

2. How to use it to play sounds?
<snip>
1	KArtsDispatcher dispatcher;
2	KArtsServer server;

3	KURL file = "file:/home/nikoz/test.mp3";

4	KPlayObjectFactory factory(server.server());
5	KPlayObject *playobj = factory.createPlayObject(file, true);

6	playobj->play();
<snap>

Line:
1	Sets up the a KArtsDispatcher
2	Starts a new SoundServerV2 in the running artsd process

3	Simple test URL to demonstrate the use with KURL

4	Creates a KPlayObjectFactory, parameter: our SoundServerV2
5	Gets a KPlayObject from the factory, containing an Arts::PlayObject
	created in our running artsd process
	Parameters:
		KURL url
			(specifies the url to be played)
		bool createBUS
		 	(specifies wheter to create a Synth_BUS_UPLINK or not, "false" is only interesting if you want to use EffectsStacks etc..., see Noatun)
6	Play the file

That's it, with 6 LOC a "full" media player :)

To make the example above compile you will also have to add these #includes:
#include <arts/kartsserver.h>
#include <arts/kartsdispatcher.h>
#include <arts/kplayobject.h>
#include <arts/kplayobjectfactory.h>

Enjoy...
Nikolas Zimmermann 
<wildfox@kde.org>