now actually randomly selects song on launch
This commit is contained in:
parent
324e3afe5a
commit
5b388e8403
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user