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.

25 lines
636B

  1. #pragma once
  2. #include <FL/Fl_Roller.H>
  3. #include "Fl_Osc_Widget.H"
  4. class Fl_Osc_Roller:public Fl_Roller, Fl_Osc_Widget
  5. {
  6. public:
  7. Fl_Osc_Roller(int X, int Y, int W, int H, const char *label = NULL);
  8. virtual ~Fl_Osc_Roller(void);
  9. void init(const char *path);
  10. //void OSC_value(float);
  11. void OSC_value(char) override;
  12. using Fl_Osc_Widget::OSC_value;
  13. //Refetch parameter information
  14. void update(void);
  15. void callback(Fl_Callback *cb, void *p = NULL);
  16. void cb(void);
  17. private:
  18. std::string name;
  19. std::pair<Fl_Callback*, void*> cb_data;
  20. };