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.cpp 730B

12345678910111213141516171819202122232425262728293031323334
  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. namespace zyncarla {
  12. template<class T>
  13. Stereo<T>::Stereo(const T &left, const T &right)
  14. :l(left), r(right)
  15. {}
  16. template<class T>
  17. Stereo<T>::Stereo(const T &val)
  18. :l(val), r(val)
  19. {}
  20. template<class T>
  21. Stereo<T> &Stereo<T>::operator=(const Stereo<T> &nstr)
  22. {
  23. l = nstr.l;
  24. r = nstr.r;
  25. return *this;
  26. }
  27. }