| 12345678910111213141516171819202122232425262728293031323334 |
- /*
- ==============================================================================
- OSCReceiverWrapper.cpp
- Created: 5 May 2025 2:34:15pm
- Author: Luigi
- ==============================================================================
- */
- #include "OSCReceiverWrapper.h"
- OSCReceiverWrapper::OSCReceiverWrapper(int port, juce::AudioProcessor* pluginProcessor) {
- this->connect(port);
- this->pluginProcessor = pluginProcessor;
- }
- OSCReceiverWrapper::~OSCReceiverWrapper() {}
- void OSCReceiverWrapper::oscMessageReceived(const juce::OSCMessage& message)
- {
- if (!message.isEmpty() && message.size() == 1) {
- auto address = message.getAddressPattern().toString();
- auto argument = message[0].getString();
- // Interpret each message
- if (address == "/") {
- //this->pluginProcessor->getCallbackLock...
- }
- }
- }
- void OSCReceiverWrapper::oscConnectionError(const juce::String& errorMessage)
- {}
|