OSCReceiverWrapper.cpp 944 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. ==============================================================================
  3. OSCReceiverWrapper.cpp
  4. Created: 5 May 2025 2:34:15pm
  5. Author: Luigi
  6. ==============================================================================
  7. */
  8. #include "OSCReceiverWrapper.h"
  9. OSCReceiverWrapper::OSCReceiverWrapper(int port, juce::AudioProcessor* pluginProcessor) {
  10. this->connect(port);
  11. this->pluginProcessor = pluginProcessor;
  12. }
  13. OSCReceiverWrapper::~OSCReceiverWrapper() {}
  14. void OSCReceiverWrapper::oscMessageReceived(const juce::OSCMessage& message)
  15. {
  16. if (!message.isEmpty() && message.size() == 1) {
  17. auto address = message.getAddressPattern().toString();
  18. auto argument = message[0].getString();
  19. // Interpret each message
  20. if (address == "/") {
  21. //this->pluginProcessor->getCallbackLock...
  22. }
  23. }
  24. }
  25. void OSCReceiverWrapper::oscConnectionError(const juce::String& errorMessage)
  26. {}