part of #2165; still trying to make sure everything compiles
This commit is contained in:
parent
5efbf6a26f
commit
781827b505
4 changed files with 11 additions and 4 deletions
|
@ -83,9 +83,11 @@ class AudioPlayerEventListener
|
||||||
* Catch the event when playing has stopped.
|
* Catch the event when playing has stopped.
|
||||||
* This will happen probably due to the fact that the
|
* This will happen probably due to the fact that the
|
||||||
* audio clip has been played to its end.
|
* audio clip has been played to its end.
|
||||||
|
*
|
||||||
|
* @param errorMessage is a 0 pointer if the player stopped normally
|
||||||
*/
|
*/
|
||||||
virtual void
|
virtual void
|
||||||
onStop(void) throw () = 0;
|
onStop(Ptr<const std::string>::Ref errorMessage) throw () = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -622,7 +622,7 @@ GstreamerPlayerTest :: eventListenerOnStopTest(void)
|
||||||
* Another, more realistic test of the event listener mechanism.
|
* Another, more realistic test of the event listener mechanism.
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
GstreamerPlayerTest :: onStop(void)
|
GstreamerPlayerTest :: onStop(Ptr<const std::string>::Ref errorMessage)
|
||||||
throw ()
|
throw ()
|
||||||
{
|
{
|
||||||
if (!startNewClipFlag) {
|
if (!startNewClipFlag) {
|
||||||
|
|
|
@ -244,9 +244,12 @@ class GstreamerPlayerTest : public CPPUNIT_NS::TestFixture,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Event handler for the "player has stopped" event.
|
* Event handler for the "player has stopped" event.
|
||||||
|
*
|
||||||
|
* @param errorMessage is a 0 pointer if the player stopped normally
|
||||||
*/
|
*/
|
||||||
virtual void
|
virtual void
|
||||||
onStop(void) throw ();
|
onStop(Ptr<const std::string>::Ref errorMessage)
|
||||||
|
throw ();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -92,9 +92,11 @@ class TestEventListener : public AudioPlayerEventListener
|
||||||
* Catch the event when playing has stopped.
|
* Catch the event when playing has stopped.
|
||||||
* This will happen probably due to the fact that the
|
* This will happen probably due to the fact that the
|
||||||
* audio clip has been played to its end.
|
* audio clip has been played to its end.
|
||||||
|
*
|
||||||
|
* @param errorMessage is a 0 pointer if the player stopped normally
|
||||||
*/
|
*/
|
||||||
virtual void
|
virtual void
|
||||||
onStop(void) throw ()
|
onStop(Ptr<const std::string>::Ref errorMessage) throw ()
|
||||||
{
|
{
|
||||||
stopFlag = true;
|
stopFlag = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue