/**************************************************************************** KHotKeys Copyright (C) 2005 Olivier Goffgart Distributed under the terms of the GNU General Public License version 2. ****************************************************************************/ #include #include #ifdef HAVE_CONFIG_H #include #endif #include "voicerecorder.h" #ifdef HAVE_ARTS #include #include #include #include extern "C" KDE_EXPORT void khotkeys_voicerecorder_arts_play( const TQString& 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