jack2 codebase
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.

71 lines
1.9KB

  1. /*
  2. Copyright (C) 2001 Paul Davis
  3. Copyright (C) 2004-2008 Grame
  4. Copyright (C) 2013 Samsung Electronics
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. */
  17. #ifndef __JackOpenSLESDriver__
  18. #define __JackOpenSLESDriver__
  19. #include "JackAudioDriver.h"
  20. namespace Jack
  21. {
  22. /*!
  23. \brief The OpenSLES driver.
  24. */
  25. class JackOpenSLESDriver : public JackAudioDriver
  26. {
  27. public:
  28. JackOpenSLESDriver(const char* name, const char* alias, JackLockedEngine* engine, JackSynchro* table)
  29. : JackAudioDriver(name, alias, engine, table), inbuffer(NULL), outbuffer(NULL)
  30. {}
  31. virtual ~JackOpenSLESDriver()
  32. {}
  33. int Open(jack_nframes_t buffe_size,
  34. jack_nframes_t samplerate,
  35. bool capturing,
  36. bool playing,
  37. int chan_in,
  38. int chan_out,
  39. bool monitor,
  40. const char* capture_driver_name,
  41. const char* playback_driver_name,
  42. jack_nframes_t capture_latency,
  43. jack_nframes_t playback_latency);
  44. int Close();
  45. int Read();
  46. int Write();
  47. int SetBufferSize(jack_nframes_t buffer_size);
  48. private:
  49. float *inbuffer;
  50. float *outbuffer;
  51. };
  52. } // end of namespace
  53. #endif