blob: ce0ad91a4cc6ebe211fe3031b7167228b32f98af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
diff -Naur spiralmodular-0.2.2.old/SpiralSound/Sample.h spiralmodular-0.2.2/SpiralSound/Sample.h
--- spiralmodular-0.2.2.old/SpiralSound/Sample.h 2006-04-02 04:42:11.000000000 -0400
+++ spiralmodular-0.2.2/SpiralSound/Sample.h 2006-04-02 04:43:11.000000000 -0400
@@ -68,7 +68,7 @@
void CropTo(int NewLength);
bool IsEmpty() const { return m_IsEmpty; }
- inline float &Sample::operator[](int i) const
+ inline float &operator[](int i) const
{
#ifdef DEBUG
assert(i>=0 && i<m_Length);
@@ -77,7 +77,7 @@
}
// Linear interpolated
- inline float Sample::operator[](float i) const
+ inline float operator[](float i) const
{
int ii=(int)i;
@@ -91,7 +91,7 @@
}
- inline void Sample::Set(int i, float v)
+ inline void Set(int i, float v)
{
m_IsEmpty=false;
#ifdef DEBUG
@@ -100,7 +100,7 @@
m_Data[i]=v;
}
- inline Sample &Sample::operator=(const Sample &rhs)
+ inline Sample &operator=(const Sample &rhs)
{
Allocate(rhs.GetLength());
memcpy(m_Data,rhs.GetBuffer(),GetLengthInBytes());
|