now actually randomly selects song on launch

This commit is contained in:
Harrison Deng 2018-08-08 23:32:25 -05:00
parent 324e3afe5a
commit 5b388e8403
2 changed files with 3 additions and 1 deletions

View File

@ -193,6 +193,9 @@ public class MusicController extends Observable implements OnCompletionListener,
@Override
public void update(Observable o, Object arg) {
if (o == musicList) {
if (shuffle) {
shuffle(false);
}
loadMusic();
}
}

View File

@ -55,7 +55,6 @@ public class PCMObtainer implements Observer, Disposable, PCMSystem {
private synchronized void calcPCMData() {
short chanVal;
for (int sid = 0; sid < PCM.length && sid < playingBuffer.remaining(); sid++) {
PCM[sid] = 0;
for (int channel = 0; channel < channelCount; channel++) {