iPlug2 - C++ Audio Plug-in Framework
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OSCInterface Class Reference
Inheritance diagram for OSCInterface:
[legend]

Public Member Functions

 OSCInterface (OSCLogFunc logFunc=nullptr)
 
 OSCInterface (const OSCInterface &)=delete
 
OSCInterfaceoperator= (const OSCInterface &)=delete
 
OSCDeviceCreateReceiver (WDL_String &log, int port=8000)
 
OSCDeviceCreateSender (WDL_String &log, const char *ip="127.0.0.1", int port=8000)
 
virtual void OnOSCMessage (OscMessageRead &msg)
 
void SetLogFunc (OSCLogFunc logFunc)
 

Protected Member Functions

void RemoveDevice (OSCDevice *device)
 Remove a device from the device list and delete it. More...
 

Protected Attributes

OSCLogFunc mLogFunc
 
std::unique_ptr< TimermTimer
 
WDL_HeapBuf mIncomingEvents
 
WDL_Mutex mIncomingEvents_mutex
 

Detailed Description

Definition at line 75 of file IPlugOSC_internal.h.

Constructor & Destructor Documentation

◆ OSCInterface()

OSCInterface::OSCInterface ( OSCLogFunc  logFunc = nullptr)

Definition at line 286 of file IPlugOSC_internal.cpp.

◆ ~OSCInterface()

OSCInterface::~OSCInterface ( )
virtual

Definition at line 295 of file IPlugOSC_internal.cpp.

Member Function Documentation

◆ CreateReceiver()

OSCDevice * OSCInterface::CreateReceiver ( WDL_String &  log,
int  port = 8000 
)

Definition at line 317 of file IPlugOSC_internal.cpp.

◆ CreateSender()

OSCDevice * OSCInterface::CreateSender ( WDL_String &  log,
const char *  ip = "127.0.0.1",
int  port = 8000 
)

Definition at line 374 of file IPlugOSC_internal.cpp.

◆ OnOSCMessage()

virtual void OSCInterface::OnOSCMessage ( OscMessageRead msg)
inlinevirtual

Reimplemented in OSCReceiver.

Definition at line 96 of file IPlugOSC_internal.h.

◆ RemoveDevice()

void OSCInterface::RemoveDevice ( OSCDevice device)
protected

Remove a device from the device list and delete it.

Parameters
deviceThe device to remove

Definition at line 307 of file IPlugOSC_internal.cpp.

Referenced by OSCSender::SetDestination(), and OSCReceiver::SetReceivePort().

◆ SetLogFunc()

void OSCInterface::SetLogFunc ( OSCLogFunc  logFunc)
inline

Definition at line 97 of file IPlugOSC_internal.h.

Member Data Documentation

◆ mIncomingEvents

WDL_HeapBuf OSCInterface::mIncomingEvents
protected

Definition at line 114 of file IPlugOSC_internal.h.

◆ mIncomingEvents_mutex

WDL_Mutex OSCInterface::mIncomingEvents_mutex
protected

Definition at line 115 of file IPlugOSC_internal.h.

◆ mLogFunc

OSCLogFunc OSCInterface::mLogFunc
protected

Definition at line 112 of file IPlugOSC_internal.h.

◆ mTimer

std::unique_ptr<Timer> OSCInterface::mTimer
protected

Definition at line 113 of file IPlugOSC_internal.h.


The documentation for this class was generated from the following files: