diff options
author | John Glover <glover.john@gmail.com> | 2010-10-21 13:39:28 +0100 |
---|---|---|
committer | John Glover <glover.john@gmail.com> | 2010-10-21 13:39:28 +0100 |
commit | ce65c30264be9683dd3a59b35730d2f31e02d37f (patch) | |
tree | 90aaf2e77526af9ba099e76175956d0dd6a37633 /sndobj/SndObj.cpp | |
parent | b46b988f164f983fc889c7bc0c96953e4609d27a (diff) | |
download | simpl-ce65c30264be9683dd3a59b35730d2f31e02d37f.tar.gz simpl-ce65c30264be9683dd3a59b35730d2f31e02d37f.tar.bz2 simpl-ce65c30264be9683dd3a59b35730d2f31e02d37f.zip |
Changed from floats to doubles in the C/C++ code, makes Python integration a bit easier. Fixed a bug that would cause SndObjSynthesis to crash if peak values were floats.
Diffstat (limited to 'sndobj/SndObj.cpp')
-rw-r--r-- | sndobj/SndObj.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sndobj/SndObj.cpp b/sndobj/SndObj.cpp index cc02494..a111426 100644 --- a/sndobj/SndObj.cpp +++ b/sndobj/SndObj.cpp @@ -46,7 +46,7 @@ SndObj::SndObj(){ } -SndObj::SndObj(SndObj* input, int vecsize, float sr){ +SndObj::SndObj(SndObj* input, int vecsize, double sr){ m_output = NULL; SetVectorSize(vecsize); m_input = input; @@ -135,7 +135,7 @@ SndObj::Connect(char* mess, void *input){ } int -SndObj::Set(char* mess, float value){ +SndObj::Set(char* mess, double value){ switch (FindMsg(mess)){ @@ -159,7 +159,7 @@ SndObj::Set(char* mess, float value){ void SndObj::SetVectorSize(int vecsize){ if(m_output) delete[] m_output; - if(!(m_output = new float[vecsize])){ + if(!(m_output = new double[vecsize])){ m_error = 1; #ifdef DEBUG cout << ErrorMessage(); |