Snap Live SDK  8.1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Groups
EmbedderListener.h
1 
15 #ifndef EMBEDDER_LISTENER_H
16 #define EMBEDDER_LISTENER_H
17 
18 #ifdef _WIN32
19  #ifdef AUDIOSDK_EXPORTS
20  #define AUDIOSDK_API __declspec(dllexport)
21  #else
22  #define AUDIOSDK_API
23  #endif
24 #else
25  #define AUDIOSDK_API
26 #endif
27 
28 #include <stdlib.h>
29 #include "Errors.h"
30 
31 namespace KantarMedia
32 {
45  {
46  public:
54  enum EventType
55  {
59  };
60 
67  struct Event
68  {
71  char const * message;
72  };
73 
74  public:
75  virtual ~IEmbedderListener() {}
76 
84  virtual void OnEvent(struct IEmbedderListener::Event const & event) = 0;
85 
94  virtual void OnData(char const * const data, size_t const size, void const * const custom_data) = 0;
95  };
96 
97 
102 };
103 
104 #endif // EMBEDDER_LISTENER_H
virtual void OnEvent(struct IEmbedderListener::Event const &event)=0
Callback used to raise events about the embedding in progress (info, warning or error).
AUDIOSDK_Error
Error codes definition.
Definition: Errors.h:36
EventType
Event types.
Definition: EmbedderListener.h:54
This event type points out that something wrong happened, but not critical.
Definition: EmbedderListener.h:57
char const * message
Message that gives more information than the code itself about the event raised.
Definition: EmbedderListener.h:71
Error codes definition.
virtual void OnData(char const *const data, size_t const size, void const *const custom_data)=0
Callback used to retrieved audio buffer embedded.
Structure used by method OnEvent to raise events.
Definition: EmbedderListener.h:67
This event type is just for information.
Definition: EmbedderListener.h:56
Class used to catch different types of events (info and data) raised by the embedder library...
Definition: EmbedderListener.h:44
This event type indicates a critical error that should be taken into account.
Definition: EmbedderListener.h:58
AUDIOSDK_Error code
Unique code in SDK referential that gives information about the event raised.
Definition: EmbedderListener.h:70
enum IEmbedderListener::EventType type
Type/Level of event (TYPE_INFO, TYPE_WARNING, TYPE_ERROR)
Definition: EmbedderListener.h:69