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.
tdebase/khotkeys/arts/voicerecorder_arts.cpp

41 lines
995 B

/****************************************************************************
KHotKeys
Copyright (C) 2005 Olivier Goffgart <ogoffart @ kde.org>
Distributed under the terms of the GNU General Public License version 2.
****************************************************************************/
#include <qcolor.h>
#include <qevent.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "voicerecorder.h"
#ifdef HAVE_ARTS
#include <arts/kplayobject.h>
#include <arts/kartsserver.h>
#include <arts/kartsdispatcher.h>
#include <arts/kplayobjectfactory.h>
extern "C"
KDE_EXPORT
void khotkeys_voicerecorder_arts_play( const QString& file )
{
KHotKeys::VoiceRecorder::arts_play_fun check = khotkeys_voicerecorder_arts_play; // check the type matches
( void ) check;
KArtsDispatcher dispatcher;
KArtsServer server;
KDE::PlayObjectFactory factory( server.server() );
KDE::PlayObject* playobj = factory.createPlayObject( file, true );
playobj->play();
}
#endif