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
Michele Calgaro 03aa7238b3
Replace Q_WS_* defines with TQ_WS_* equivalents
2 months ago
..
mcop-dcop Replace Q_OBJECT with TQ_OBJECT 9 months ago
CMakeL10n.txt Add CMakeL10n rules. 5 years ago
CMakeLists.txt Renaming of files in preparation for code style tools. 3 years ago
Makefile.am Renaming of files in preparation for code style tools. 3 years ago
README Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version 7 months ago
artskde.idl Rename KServer, KSocket, KIO_EXPORT, KIOInput, KIOJob, KIOConfig, KIOBuffer, and KBuffer to avoid conflicts with KDE4 11 years ago
kartsdispatcher.cpp Renaming of files in preparation for code style tools. 3 years ago
kartsdispatcher.h Replace Q_OBJECT with TQ_OBJECT 9 months ago
kartsfloatwatch.cpp Trinity Qt initial conversion 14 years ago
kartsfloatwatch.h Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 4 months ago
kartsserver.cpp Removed code formatting modelines. 4 years ago
kartsserver.h Replace Q_OBJECT with TQ_OBJECT 9 months ago
kaudioconverter.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 4 months ago
kaudioconverter.h Replace Q_OBJECT with TQ_OBJECT 9 months ago
kaudiomanagerplay.cpp Removed code formatting modelines. 4 years ago
kaudiomanagerplay.h Removed code formatting modelines. 4 years ago
kaudioplaystream.cpp Removed code formatting modelines. 4 years ago
kaudioplaystream.h Replace Q_OBJECT with TQ_OBJECT 9 months ago
kaudioplaystream_p.h Replace Q_OBJECT with TQ_OBJECT 9 months ago
kaudiorecordstream.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 4 months ago
kaudiorecordstream.h Replace Q_OBJECT with TQ_OBJECT 9 months ago
kaudiorecordstream_p.h Replace Q_OBJECT with TQ_OBJECT 9 months ago
kconverttest.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 4 months ago
kconverttest.h Replace Q_OBJECT with TQ_OBJECT 9 months 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 Replace Q_OBJECT with TQ_OBJECT 9 months ago
kioinputstream_impl.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 4 months ago
kioinputstream_impl.h Replace Q_OBJECT with TQ_OBJECT 9 months ago
kiotest.cpp Renaming of files in preparation for code style tools. 3 years ago
kiotestslow.cpp Renaming of files in preparation for code style tools. 3 years ago
kplayobject.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 4 months ago
kplayobject.h Replace Q_OBJECT with TQ_OBJECT 9 months ago
kplayobjectcreator.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 4 months ago
kplayobjectcreator.h Replace Q_OBJECT with TQ_OBJECT 9 months ago
kplayobjectfactory.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 4 months ago
kplayobjectfactory.h Removed code formatting modelines. 4 years ago
kplayobjectfactory_p.h Replace Q_OBJECT with TQ_OBJECT 9 months ago
kvideowidget.cpp Replace Q_WS_* defines with TQ_WS_* equivalents 2 months ago
kvideowidget.h Replace Q_OBJECT with TQ_OBJECT 9 months 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 TQString'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>