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.

33 lines
817B

  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
  7. modify it under the terms of the GNU General Public License
  8. as published by the Free Software Foundation; either version 2
  9. of the License, or (at your option) any later version.
  10. */
  11. #ifndef STEREO_H
  12. #define STEREO_H
  13. template<class T>
  14. struct Stereo {
  15. public:
  16. Stereo(const T &left, const T &right);
  17. /**Initializes Stereo with left and right set to val
  18. * @param val the value for both channels*/
  19. Stereo(const T &val);
  20. ~Stereo() {}
  21. Stereo<T> &operator=(const Stereo<T> &smp);
  22. //data
  23. T l, r;
  24. };
  25. #include "Stereo.cpp"
  26. #endif