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.

113 lines
2.6KB

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