Start looping if there is not enough samples.

Fix noise in some looping bgm. It may fix issue #2379.