From a26dfdf7ba6d9058cbfe5d07b7048007552d5482 Mon Sep 17 00:00:00 2001 From: maroy Date: Mon, 10 Jan 2005 12:49:48 +0000 Subject: [PATCH] updated to reflect changes in external APIs --- .../src/AudioPlayerFactoryTest.cxx | 5 +++-- .../src/HelixEventHandlerThread.h | 15 +++++++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/livesupport/modules/playlistExecutor/src/AudioPlayerFactoryTest.cxx b/livesupport/modules/playlistExecutor/src/AudioPlayerFactoryTest.cxx index 908d2505c..2c1408e72 100644 --- a/livesupport/modules/playlistExecutor/src/AudioPlayerFactoryTest.cxx +++ b/livesupport/modules/playlistExecutor/src/AudioPlayerFactoryTest.cxx @@ -22,7 +22,7 @@ Author : $Author: maroy $ - Version : $Revision: 1.3 $ + Version : $Revision: 1.4 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/playlistExecutor/src/Attic/AudioPlayerFactoryTest.cxx,v $ ------------------------------------------------------------------------------*/ @@ -152,7 +152,7 @@ AudioPlayerFactoryTest :: simplePlayTest(void) audioPlayerFactory = AudioPlayerFactory::getInstance(); audioPlayer = audioPlayerFactory->getAudioPlayer(); - audioPlayer->playThis("file:var/test.mp3"); + audioPlayer->open("file:var/test.mp3"); CPPUNIT_ASSERT(!audioPlayer->isPlaying()); audioPlayer->start(); CPPUNIT_ASSERT(audioPlayer->isPlaying()); @@ -160,5 +160,6 @@ AudioPlayerFactoryTest :: simplePlayTest(void) TimeConversion::sleep(sleepT); } CPPUNIT_ASSERT(!audioPlayer->isPlaying()); + audioPlayer->close(); } diff --git a/livesupport/modules/playlistExecutor/src/HelixEventHandlerThread.h b/livesupport/modules/playlistExecutor/src/HelixEventHandlerThread.h index ffe12f03b..544e6a054 100644 --- a/livesupport/modules/playlistExecutor/src/HelixEventHandlerThread.h +++ b/livesupport/modules/playlistExecutor/src/HelixEventHandlerThread.h @@ -22,7 +22,7 @@ Author : $Author: maroy $ - Version : $Revision: 1.1 $ + Version : $Revision: 1.2 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/playlistExecutor/src/Attic/HelixEventHandlerThread.h,v $ ------------------------------------------------------------------------------*/ @@ -65,7 +65,7 @@ using namespace LiveSupport::Core; * A thread that checks on Helix events every once in a while. * * @author $Author: maroy $ - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ */ class HelixEventHandlerThread : public virtual RunnableInterface { @@ -121,6 +121,17 @@ class HelixEventHandlerThread : public virtual RunnableInterface virtual void run(void) throw (); + /** + * Send a signal to the runnable object. + * This function simply does nothing. + * + * @param userData user-specific parameter for the signal. + */ + virtual void + signal(int userData) throw () + { + } + /** * Signal the thread to stop, gracefully. */