made const function private so that it does not conflict with audio version of const in pink.util