2011-05-19 06:24:29 +02:00
|
|
|
//****************************************************************
|
2011-05-19 06:36:14 +02:00
|
|
|
//cAudio 2.2.0 Tutorial 7
|
2011-05-19 06:24:29 +02:00
|
|
|
//Custom log receiver
|
|
|
|
//****************************************************************
|
|
|
|
|
|
|
|
//We include the interface of the log receiver
|
|
|
|
#include "ILogReceiver.h"
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
|
|
//Now we make our new class and inherit the ILogReceiver interface
|
|
|
|
class cTestLogReceiver : public cAudio::ILogReceiver
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
//Must have the constructor and desconstructor
|
|
|
|
cTestLogReceiver();
|
|
|
|
~cTestLogReceiver();
|
|
|
|
|
|
|
|
//Only function that must be included in order for the receiver to work
|
|
|
|
bool OnLogMessage(const char* sender, const char* message, cAudio::LogLevel level, float time);
|
|
|
|
|
|
|
|
};
|