You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdelibs/arts/kde
Timothy Pearson d1bd46309a
Rename KServer, KSocket, KIO_EXPORT, KIOInput, KIOJob, KIOConfig, KIOBuffer, and KBuffer to avoid conflicts with KDE4
12 years ago
..
mcop-dcop Rename KInstance and KAboutData to avoid conflicts with KDE4 12 years ago
CMakeLists.txt Additional kde to tde renaming 13 years ago
Makefile.am Rename additional instances of KDE to TDE 13 years ago
README Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
artskde.idl Rename KServer, KSocket, KIO_EXPORT, KIOInput, KIOJob, KIOConfig, KIOBuffer, and KBuffer to avoid conflicts with KDE4 12 years ago
kartsdispatcher.cc Trinity Qt initial conversion 14 years ago
kartsdispatcher.h Additional renaming of kde to tde 13 years ago
kartsfloatwatch.cpp Trinity Qt initial conversion 14 years ago
kartsfloatwatch.h Trinity Qt initial conversion 14 years ago
kartsserver.cpp Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4 12 years ago
kartsserver.h Additional renaming of kde to tde 13 years ago
kaudioconverter.cc Rename KServer, KSocket, KIO_EXPORT, KIOInput, KIOJob, KIOConfig, KIOBuffer, and KBuffer to avoid conflicts with KDE4 12 years ago
kaudioconverter.h Initial conversion for TQt for Qt4 3.4.0 TP2 14 years ago
kaudiomanagerplay.cpp Trinity Qt initial conversion 14 years ago
kaudiomanagerplay.h Additional renaming of kde to tde 13 years ago
kaudioplaystream.cpp Trinity Qt initial conversion 14 years ago
kaudioplaystream.h Additional renaming of kde to tde 13 years ago
kaudioplaystream_p.h Trinity Qt initial conversion 14 years ago
kaudiorecordstream.cpp Trinity Qt initial conversion 14 years ago
kaudiorecordstream.h Additional renaming of kde to tde 13 years ago
kaudiorecordstream_p.h Trinity Qt initial conversion 14 years ago
kconverttest.cc Rename KInstance and KAboutData to avoid conflicts with KDE4 12 years ago
kconverttest.h Initial conversion for TQt for Qt4 3.4.0 TP2 14 years ago
kdatarequest_impl.cpp Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
kdatarequest_impl.h Trinity Qt initial conversion 14 years ago
kioinputstream_impl.cpp Rename KServer, KSocket, KIO_EXPORT, KIOInput, KIOJob, KIOConfig, KIOBuffer, and KBuffer to avoid conflicts with KDE4 12 years ago
kioinputstream_impl.h Rename KServer, KSocket, KIO_EXPORT, KIOInput, KIOJob, KIOConfig, KIOBuffer, and KBuffer to avoid conflicts with KDE4 12 years ago
kiotest.cc Rename KServer, KSocket, KIO_EXPORT, KIOInput, KIOJob, KIOConfig, KIOBuffer, and KBuffer to avoid conflicts with KDE4 12 years ago
kiotestslow.cc Rename KServer, KSocket, KIO_EXPORT, KIOInput, KIOJob, KIOConfig, KIOBuffer, and KBuffer to avoid conflicts with KDE4 12 years ago
kplayobject.cc Rename old tq methods that no longer need a unique name 13 years ago
kplayobject.h Rename KServer, KSocket, KIO_EXPORT, KIOInput, KIOJob, KIOConfig, KIOBuffer, and KBuffer to avoid conflicts with KDE4 12 years ago
kplayobjectcreator.cc Rename KServer, KSocket, KIO_EXPORT, KIOInput, KIOJob, KIOConfig, KIOBuffer, and KBuffer to avoid conflicts with KDE4 12 years ago
kplayobjectcreator.h Rename KServer, KSocket, KIO_EXPORT, KIOInput, KIOJob, KIOConfig, KIOBuffer, and KBuffer to avoid conflicts with KDE4 12 years ago
kplayobjectfactory.cc Rename KServer, KSocket, KIO_EXPORT, KIOInput, KIOJob, KIOConfig, KIOBuffer, and KBuffer to avoid conflicts with KDE4 12 years ago
kplayobjectfactory.h Additional renaming of kde to tde 13 years ago
kplayobjectfactory_p.h Initial conversion for TQt for Qt4 3.4.0 TP2 14 years ago
kvideowidget.cpp Rename additional global functions and variables for tqt3 13 years ago
kvideowidget.h Use non-tq sizeHint functions to fix bindings 13 years ago

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>