ConfigAudio.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*\
  2. |*| Copyright 2015-2016 bill-auger <https://github.com/bill-auger/av-caster/issues>
  3. |*|
  4. |*| This file is part of the AvCaster program.
  5. |*|
  6. |*| AvCaster is free software: you can redistribute it and/or modify
  7. |*| it under the terms of the GNU General Public License version 3
  8. |*| as published by the Free Software Foundation.
  9. |*|
  10. |*| AvCaster is distributed in the hope that it will be useful,
  11. |*| but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. |*| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. |*| GNU General Public License for more details.
  14. |*|
  15. |*| You should have received a copy of the GNU General Public License
  16. |*| along with AvCaster. If not, see <http://www.gnu.org/licenses/>.
  17. \*/
  18. #ifndef _CONFIG_AUDIO_H_
  19. #define _CONFIG_AUDIO_H_
  20. //[Headers] -- You can add your own extra header files here --
  21. #include "JuceHeader.h"
  22. class MainContent ;
  23. //[/Headers]
  24. //==============================================================================
  25. /**
  26. //[Comments]
  27. ConfigAudio is the audio device configuration GUI for the AvCaster application.
  28. It has it controls for setting the per-preset audio device parameters.
  29. //[/Comments]
  30. */
  31. class ConfigAudio : public Component,
  32. public ComboBoxListener,
  33. public SliderListener
  34. {
  35. public:
  36. //==============================================================================
  37. ConfigAudio ();
  38. ~ConfigAudio();
  39. //==============================================================================
  40. //[UserMethods] -- You can add your own custom methods in this section.
  41. //[/UserMethods]
  42. void paint (Graphics& g) override;
  43. void resized() override;
  44. void comboBoxChanged (ComboBox* comboBoxThatHasChanged) override;
  45. void sliderValueChanged (Slider* sliderThatWasMoved) override;
  46. private:
  47. //[UserVariables] -- You can add your own custom variables in this section.
  48. friend class Config ;
  49. MainContent* mainContent ;
  50. //[/UserVariables]
  51. //==============================================================================
  52. ScopedPointer<Label> audioApiLabel;
  53. ScopedPointer<ComboBox> audioApiCombo;
  54. ScopedPointer<Label> audioDevLabel;
  55. ScopedPointer<ComboBox> audioDevCombo;
  56. ScopedPointer<Label> audioCodecLabel;
  57. ScopedPointer<ComboBox> audioCodecCombo;
  58. ScopedPointer<Label> nChannelsLabel;
  59. ScopedPointer<Slider> nChannelsSlider;
  60. ScopedPointer<Label> samplerateLabel;
  61. ScopedPointer<ComboBox> samplerateCombo;
  62. ScopedPointer<Label> audioBitrateLabel;
  63. ScopedPointer<ComboBox> audioBitrateCombo;
  64. //==============================================================================
  65. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ConfigAudio)
  66. };
  67. //[EndFile] You can add extra defines here...
  68. //[/EndFile]
  69. #endif // _CONFIG_AUDIO_H_