示例#1
0
 private void notifyTrackCountChanged() {
   synchronized (listeners) {
     Iterator iterator = listeners.iterator();
     while (iterator.hasNext()) {
       ICdPlayerListener listener = (ICdPlayerListener) iterator.next();
       listener.trackCountChanged(trackCount);
     }
   }
 }
示例#2
0
 private void notifyRandomChanged() {
   synchronized (listeners) {
     Iterator iterator = listeners.iterator();
     while (iterator.hasNext()) {
       ICdPlayerListener listener = (ICdPlayerListener) iterator.next();
       listener.randomChanged(isRandomOn);
     }
   }
 }
示例#3
0
 private void notifyStopped() {
   synchronized (listeners) {
     Iterator iterator = listeners.iterator();
     while (iterator.hasNext()) {
       ICdPlayerListener listener = (ICdPlayerListener) iterator.next();
       listener.stopped();
     }
   }
 }