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.

31 lines
705B

  1. /*
  2. ZynAddSubFX - a software synthesizer
  3. Stereo.cpp - 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. template<class T>
  12. Stereo<T>::Stereo(const T &left, const T &right)
  13. :l(left), r(right)
  14. {}
  15. template<class T>
  16. Stereo<T>::Stereo(const T &val)
  17. :l(val), r(val)
  18. {}
  19. template<class T>
  20. Stereo<T> &Stereo<T>::operator=(const Stereo<T> &nstr)
  21. {
  22. l = nstr.l;
  23. r = nstr.r;
  24. return *this;
  25. }