summaryrefslogtreecommitdiff
path: root/src/sndobj/SndObj.h
diff options
context:
space:
mode:
authorJohn Glover <j@johnglover.net>2012-07-20 17:44:01 +0100
committerJohn Glover <j@johnglover.net>2012-07-20 17:44:01 +0100
commitc8eef2c4f0f9b22babc9aef9e0d4cef133475c9b (patch)
tree92123c31c9d14f7cf350b7ca067e2d8333096904 /src/sndobj/SndObj.h
parent9b19b241f69e2472a8d597038967abab18414172 (diff)
downloadsimpl-c8eef2c4f0f9b22babc9aef9e0d4cef133475c9b.tar.gz
simpl-c8eef2c4f0f9b22babc9aef9e0d4cef133475c9b.tar.bz2
simpl-c8eef2c4f0f9b22babc9aef9e0d4cef133475c9b.zip
[sndobj] Change input parameter 'mess' from char* to const char* in Set and Connect methods of analysis SndObjs.
Diffstat (limited to 'src/sndobj/SndObj.h')
-rw-r--r--src/sndobj/SndObj.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sndobj/SndObj.h b/src/sndobj/SndObj.h
index f0b0f83..f22343b 100644
--- a/src/sndobj/SndObj.h
+++ b/src/sndobj/SndObj.h
@@ -74,7 +74,7 @@ class SndObj {
msg_link *m_msgtable;
- inline int FindMsg(char* mess);
+ inline int FindMsg(const char* mess);
void AddMsg(const char* mess, int ID);
#if defined (WIN) && !defined(GCC)
@@ -254,8 +254,8 @@ class SndObj {
void RestoreVectorSize(){ m_vecsize = m_vecsize_max; }
double GetSr(){ return m_sr;}
virtual void SetSr(double sr){ m_sr = sr;}
- virtual int Set(char* mess, double value);
- virtual int Connect(char* mess, void* input);
+ virtual int Set(const char* mess, double value);
+ virtual int Connect(const char* mess, void* input);
void SetInput(SndObj* input){
@@ -276,7 +276,7 @@ class SndObj {
};
int
-SndObj::FindMsg(char* mess){
+SndObj::FindMsg(const char* mess){
msg_link* iter = m_msgtable;
while(iter->previous && iter->msg.compare(mess))
iter = iter->previous;