Showing the changes to Spectacle/Spectacle.cpp (1 of 2 files). Show all
Unified · Split
| @@ -257,6 +257,8 @@ public: · 256 unmodified lines | ||
| 257 | 257 | spectdelay->set_delay_freqrange(minfreq, maxfreq); |
| 258 | 258 | spectdelay->set_freqrange(minfreq, maxfreq); |
| 259 | 259 | } |
| 260 | + | |
| 261 | + return min; | |
| 260 | 262 | } |
| 261 | 263 | |
| 262 | 264 | float getMinFreq () { return minfreq; } |
| @@ -272,6 +274,8 @@ public: · 9 unmodified lines | ||
| 272 | 274 | spectdelay->set_delay_freqrange(minfreq, maxfreq); |
| 273 | 275 | spectdelay->set_freqrange(minfreq, maxfreq); |
| 274 | 276 | } |
| 277 | + | |
| 278 | + return max; | |
| 275 | 279 | } |
| 276 | 280 | |
| 277 | 281 | float getMaxFreq () { return maxfreq; } |
| @@ -846,7 +850,9 @@ CK_DLL_MFUN(spectacle_setFreqRange) · 568 unmodified lines | ||
| 846 | 850 | // get our c++ class pointer |
| 847 | 851 | Spectacle * bcdata = (Spectacle *) OBJ_MEMBER_INT(SELF, spectacle_data_offset); |
| 848 | 852 | // set the return value |
| 849 | − bcdata->setFreqRange(GET_NEXT_FLOAT(ARGS),GET_NEXT_FLOAT(ARGS)); | |
| 853 | + t_CKFLOAT rangeMin = GET_NEXT_FLOAT(ARGS); | |
| 854 | + t_CKFLOAT rangeMax = GET_NEXT_FLOAT(ARGS); | |
| 855 | + bcdata->setFreqRange(rangeMin,rangeMax); | |
| 850 | 856 | } |
| 851 | 857 | |
| 852 | 858 | // example implementation for setter |