Check that audio indices are in range