Fix for playing samples that are shorter than buffer size