Added zoomscrollbar for waveform. Removed unused code.

This commit is contained in:
xenakios
2018-02-14 15:18:35 +02:00
parent 36bfccf38f
commit e3d893ee9e
3 changed files with 138 additions and 32 deletions

View File

@ -251,3 +251,9 @@ inline void toggleBool(AudioParameterBool* b)
{
*b = !(*b);
}
template<typename T>
inline bool is_in_range(T val, T start, T end)
{
return val >= start && val <= end;
}