The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
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.

112 lines
2.4KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2013 - Raw Material Software Ltd.
  5. Permission is granted to use this software under the terms of either:
  6. a) the GPL v2 (or any later version)
  7. b) the Affero GPL v3
  8. Details of these licenses can be found at: www.gnu.org/licenses
  9. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  11. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  12. ------------------------------------------------------------------------------
  13. To release a closed-source product which uses JUCE, commercial licenses are
  14. available: visit www.juce.com for more information.
  15. ==============================================================================
  16. */
  17. // TODO
  18. class AndroidCameraInternal
  19. {
  20. public:
  21. AndroidCameraInternal()
  22. {
  23. }
  24. ~AndroidCameraInternal()
  25. {
  26. }
  27. private:
  28. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AndroidCameraInternal)
  29. };
  30. //==============================================================================
  31. CameraDevice::CameraDevice (const String& name_, int /*index*/)
  32. : name (name_)
  33. {
  34. internal = new AndroidCameraInternal();
  35. // TODO
  36. }
  37. CameraDevice::~CameraDevice()
  38. {
  39. stopRecording();
  40. delete static_cast <AndroidCameraInternal*> (internal);
  41. internal = 0;
  42. }
  43. Component* CameraDevice::createViewerComponent()
  44. {
  45. // TODO
  46. return nullptr;
  47. }
  48. String CameraDevice::getFileExtension()
  49. {
  50. return ".m4a"; // TODO correct?
  51. }
  52. void CameraDevice::startRecordingToFile (const File& file, int quality)
  53. {
  54. // TODO
  55. }
  56. Time CameraDevice::getTimeOfFirstRecordedFrame() const
  57. {
  58. // TODO
  59. return Time();
  60. }
  61. void CameraDevice::stopRecording()
  62. {
  63. // TODO
  64. }
  65. void CameraDevice::addListener (Listener* listenerToAdd)
  66. {
  67. // TODO
  68. }
  69. void CameraDevice::removeListener (Listener* listenerToRemove)
  70. {
  71. // TODO
  72. }
  73. StringArray CameraDevice::getAvailableDevices()
  74. {
  75. StringArray devs;
  76. // TODO
  77. return devs;
  78. }
  79. CameraDevice* CameraDevice::openDevice (int index,
  80. int minWidth, int minHeight,
  81. int maxWidth, int maxHeight)
  82. {
  83. // TODO
  84. return nullptr;
  85. }