audio.hpp 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. struct AudioSettings : PanelItem {
  2. AudioSettings(View*);
  3. auto show() -> void override;
  4. auto hide() -> void override;
  5. auto refresh() -> void;
  6. auto eventChange() -> void;
  7. Frame frame{this, Size{~0, ~0}};
  8. VerticalLayout layout{&frame};
  9. Label driverHeader{&layout, Size{~0, 0}};
  10. HorizontalLayout driverLayout{&layout, Size{~0, 0}};
  11. Label driverLabel{&driverLayout, Size{0, 0}};
  12. ComboButton driverOption{&driverLayout, Size{0, 0}};
  13. Button changeButton{&driverLayout, Size{0, 0}};
  14. Label settingsHeader{&layout, Size{~0, 0}};
  15. VerticalLayout settingsLayout{&layout, Size{~0, 0}};
  16. HorizontalLayout deviceLayout{&settingsLayout, Size{~0, 0}};
  17. Label deviceLabel{&deviceLayout, Size{0, 0}};
  18. ComboButton deviceOption{&deviceLayout, Size{~0, 0}};
  19. Label frequencyLabel{&deviceLayout, Size{0, 0}};
  20. ComboButton frequencyOption{&deviceLayout, Size{0, 0}};
  21. Label latencyLabel{&deviceLayout, Size{0, 0}};
  22. ComboButton latencyOption{&deviceLayout, Size{0, 0}};
  23. HorizontalLayout togglesLayout{&settingsLayout, Size{~0, 0}};
  24. CheckLabel exclusiveOption{&togglesLayout, Size{0, 0}};
  25. CheckLabel blockingOption{&togglesLayout, Size{0, 0}};
  26. CheckLabel dynamicOption{&togglesLayout, Size{0, 0}};
  27. Label effectsHeader{&layout, Size{~0, 0}};
  28. TableLayout effectsLayout{&layout, Size{~0, 0}};
  29. Label skewLabel{&effectsLayout, Size{0, 0}};
  30. Label skewValue{&effectsLayout, Size{50_sx, 0}};
  31. HorizontalSlider skewSlider{&effectsLayout, Size{~0, 0}};
  32. Label volumeLabel{&effectsLayout, Size{0, 0}};
  33. Label volumeValue{&effectsLayout, Size{50_sx, 0}};
  34. HorizontalSlider volumeSlider{&effectsLayout, Size{~0, 0}};
  35. Label balanceLabel{&effectsLayout, Size{0, 0}};
  36. Label balanceValue{&effectsLayout, Size{50_sx, 0}};
  37. HorizontalSlider balanceSlider{&effectsLayout, Size{~0, 0}};
  38. };