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
|
@Override
|
||||||
public void update(Observable o, Object arg) {
|
public void update(Observable o, Object arg) {
|
||||||
if (o == musicList) {
|
if (o == musicList) {
|
||||||
|
if (shuffle) {
|
||||||
|
shuffle(false);
|
||||||
|
}
|
||||||
loadMusic();
|
loadMusic();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,6 @@ public class PCMObtainer implements Observer, Disposable, PCMSystem {
|
|||||||
|
|
||||||
private synchronized void calcPCMData() {
|
private synchronized void calcPCMData() {
|
||||||
short chanVal;
|
short chanVal;
|
||||||
|
|
||||||
for (int sid = 0; sid < PCM.length && sid < playingBuffer.remaining(); sid++) {
|
for (int sid = 0; sid < PCM.length && sid < playingBuffer.remaining(); sid++) {
|
||||||
PCM[sid] = 0;
|
PCM[sid] = 0;
|
||||||
for (int channel = 0; channel < channelCount; channel++) {
|
for (int channel = 0; channel < channelCount; channel++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user