Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
605B

  1. #pragma once
  2. #include <FL/Fl_Value_Output.H>
  3. #include "Fl_Osc_Widget.H"
  4. class Fl_Osc_Output:public Fl_Value_Output, public Fl_Osc_Widget
  5. {
  6. public:
  7. Fl_Osc_Output(int x, int y, int w, int h, const char *label = NULL);
  8. void init(const char *path);
  9. void OSC_value(char);
  10. void OSC_value(float);
  11. using Fl_Osc_Widget::OSC_value;
  12. void update(void);
  13. void callback(Fl_Callback *cb, void *p = NULL);
  14. float newvalue() const;
  15. void cb(void);
  16. private:
  17. float newvalue_;
  18. std::pair<Fl_Callback*, void*> cb_data;
  19. };