2010-02-13 05:48:57 +01:00
|
|
|
// Copyright (c) 2008-2010 Raynaldo (Wildicv) Rivera, Joshua (Dark_Kilauea) Jones
|
|
|
|
// This file is part of the "cAudio Engine"
|
|
|
|
// For conditions of distribution and use, see copyright notice in cAudio.h
|
|
|
|
|
|
|
|
#ifndef IMANAGEREVENTHANDLER_H
|
|
|
|
#define IMANAGEREVENTHANDLER_H
|
|
|
|
|
2010-02-17 06:57:55 +01:00
|
|
|
namespace cAudio
|
|
|
|
{
|
|
|
|
//! Interface for event handlers for playback manager events.
|
2010-02-13 05:48:57 +01:00
|
|
|
class IManagerEventHandler
|
|
|
|
{
|
|
|
|
public:
|
2010-02-17 06:57:55 +01:00
|
|
|
//! This function is called on manager initialization.
|
2010-02-13 05:48:57 +01:00
|
|
|
virtual void onInit() = 0;
|
2010-02-17 06:57:55 +01:00
|
|
|
|
|
|
|
//! This function is called on every manager update.
|
2010-02-13 05:48:57 +01:00
|
|
|
virtual void onUpdate() = 0;
|
2010-02-17 06:57:55 +01:00
|
|
|
|
|
|
|
//! This function is called on manager shutdown.
|
2010-02-13 05:48:57 +01:00
|
|
|
virtual void onRelease() = 0;
|
2010-02-17 06:57:55 +01:00
|
|
|
|
|
|
|
//! This function is called on when an audio source is created.
|
2010-02-13 05:48:57 +01:00
|
|
|
virtual void onSourceCreate() = 0;
|
2010-02-17 06:57:55 +01:00
|
|
|
|
|
|
|
//! This function is called when an audio decoder is registered.
|
2010-02-13 05:48:57 +01:00
|
|
|
virtual void onDecoderRegister() = 0;
|
|
|
|
|
2010-02-17 06:57:55 +01:00
|
|
|
//! This function is called when a data source is registered.
|
|
|
|
virtual void onDataSourceRegister() = 0;
|
2010-02-13 05:48:57 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //! IMANAGEREVENTHANDLER_H
|