HISE Logo Forum
    • Categories
    • Register
    • Login

    sendDataToGlobalCable issue No matching member function

    Scheduled Pinned Locked Moved Solved General Questions
    3 Posts 1 Posters 103 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ustkU
      ustk
      last edited by ustk

      Trying to send back to the second cable, I get a No matching member function...
      But I succeed receiving from the first cable

      enum class GlobalCables
      {
          myCable_gc = 0
      };
      
      using cable_manager_t = routing::global_cable_cpp_manager<SN_GLOBAL_CABLE(910379922)>;
      
      
      class MyClass: public cable_manager_t
      {
      private:
          void sendToCable()
          {
              this->sendDataToGlobalCable<GlobalCables::myCable_gc>(data); // No matching member function for call to 'sendDataToGlobalCable'
              this->setGlobalCableValue<GlobalCables::myCable_gc>(0.4); // working
          }
      
          std::array<float, SIZE> data;
      }
      

      Hise made me an F5 dude, browser just suffers...

      1 Reply Last reply Reply Quote 0
      • ustkU
        ustk
        last edited by ustk

        @Christoph-Hart This is still unsolved, I really need it to send data back to ui script

        I don't understand because both sendDataToGlobalCable and setGlobalCableValue are existing in the global_cable_cpp_manager

        By the way, is it allowed to send a juce::path as data so it lightens the UI script instead of building the path there?

        Hise made me an F5 dude, browser just suffers...

        1 Reply Last reply Reply Quote 0
        • ustkU
          ustk
          last edited by

          In the end it was just a parameter type issue, this function accepting var type only (unlike when sending data from the UI)
          So whatever you want to pass in, you first need to perform a type conversion.

          Hise made me an F5 dude, browser just suffers...

          1 Reply Last reply Reply Quote 0
          • ustkU ustk marked this topic as a question
          • ustkU ustk has marked this topic as solved
          • First post
            Last post

          13

          Online

          2.0k

          Users

          12.9k

          Topics

          111.5k

          Posts