OpenSDE Packages Database (without history before r20070)
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.

55 lines
1.7 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../spiralsynthmodular/gcc41.patch
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. diff -Nur SpiralSynthModular-0.1.1-orig/SpiralSound/Sample.h SpiralSynthModular-0.1.1/SpiralSound/Sample.h
  17. --- SpiralSynthModular-0.1.1-orig/SpiralSound/Sample.h 2002-07-28 23:18:14.000000000 +0000
  18. +++ SpiralSynthModular-0.1.1/SpiralSound/Sample.h 2006-04-01 20:54:24.247417750 +0000
  19. @@ -67,7 +67,7 @@
  20. void CropTo(int NewLength);
  21. bool IsEmpty() const { return m_IsEmpty; }
  22. - inline float &Sample::operator[](int i) const
  23. + inline float &operator[](int i) const
  24. {
  25. #ifdef DEBUG
  26. assert(i>=0 && i<m_Length);
  27. @@ -76,7 +76,7 @@
  28. }
  29. // Linear interpolated
  30. - inline float Sample::operator[](float i) const
  31. + inline float operator[](float i) const
  32. {
  33. int ii=(int)i;
  34. @@ -90,7 +90,7 @@
  35. }
  36. - inline void Sample::Set(int i, float v)
  37. + inline void Set(int i, float v)
  38. {
  39. m_IsEmpty=false;
  40. #ifdef DEBUG
  41. @@ -99,7 +99,7 @@
  42. m_Data[i]=v;
  43. }
  44. - inline Sample &Sample::operator=(const Sample &rhs)
  45. + inline Sample &operator=(const Sample &rhs)
  46. {
  47. Allocate(rhs.GetLength());
  48. memcpy(m_Data,rhs.GetBuffer(),GetLengthInBytes());