Audio plugin host https://kx.studio/carla
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.

41 lines
1.2KB

  1. /*
  2. ZynAddSubFX - a software synthesizer
  3. Stereo.h - Object for storing a pair of objects
  4. Copyright (C) 2009-2009 Mark McCurry
  5. Author: Mark McCurry
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of version 2 of the GNU General Public License
  8. as published by the Free Software Foundation.
  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 (version 2 or later) for more details.
  13. You should have received a copy of the GNU General Public License (version 2)
  14. along with this program; if not, write to the Free Software Foundation,
  15. Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. */
  17. #ifndef STEREO_H
  18. #define STEREO_H
  19. template<class T>
  20. struct Stereo {
  21. public:
  22. Stereo(const T &left, const T &right);
  23. /**Initializes Stereo with left and right set to val
  24. * @param val the value for both channels*/
  25. Stereo(const T &val);
  26. ~Stereo() {}
  27. Stereo<T> &operator=(const Stereo<T> &smp);
  28. //data
  29. T l, r;
  30. };
  31. #include "Stereo.cpp"
  32. #endif