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 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 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. template<class T>
  18. Stereo<T>::Stereo(const T &left, const T &right)
  19. :l(left), r(right)
  20. {}
  21. template<class T>
  22. Stereo<T>::Stereo(const T &val)
  23. :l(val), r(val)
  24. {}
  25. template<class T>
  26. Stereo<T> &Stereo<T>::operator=(const Stereo<T> &nstr)
  27. {
  28. l = nstr.l;
  29. r = nstr.r;
  30. return *this;
  31. }