Extracted switch statement from method processNextBuffer in song.cpp
Extracted logic from processNextBuffer for playMode to setPlayMode.