From ce65c30264be9683dd3a59b35730d2f31e02d37f Mon Sep 17 00:00:00 2001 From: John Glover Date: Thu, 21 Oct 2010 13:39:28 +0100 Subject: 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. --- sndobj/Table.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sndobj/Table.h') diff --git a/sndobj/Table.h b/sndobj/Table.h index 6f0bede..f20a2bd 100644 --- a/sndobj/Table.h +++ b/sndobj/Table.h @@ -35,7 +35,7 @@ class Table { protected: long m_L; // size; - float* m_table; // table + double* m_table; // table int m_error; // error code void ZeroTable () { @@ -47,8 +47,8 @@ class Table { public: long GetLen() { return m_L; } - float* GetTable(){ return m_table; } - float Lookup(int pos){ + double* GetTable(){ return m_table; } + double Lookup(int pos){ return m_table[pos%m_L]; } -- cgit v1.2.3