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.

Stereo.h 843B

12345678910111213141516171819202122232425262728293031323334353637
  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. namespace zyncarla {
  14. template<class T>
  15. struct Stereo {
  16. public:
  17. Stereo(const T &left, const T &right);
  18. /**Initializes Stereo with left and right set to val
  19. * @param val the value for both channels*/
  20. Stereo(const T &val);
  21. ~Stereo() {}
  22. Stereo<T> &operator=(const Stereo<T> &smp);
  23. //data
  24. T l, r;
  25. };
  26. }
  27. #include "Stereo.cpp"
  28. #endif