- // System.out.println("DEBUG: Turn on speaker!");
-
- //try {
-
- // start the speaker playback if the speaker is not playing yet
- if (!speakers.getPlaybackState()) {
-
- System.out.println("Turning a speaker On in room: " + room.getRoomID());
- speakers.startPlayback();
- speakers.setPosition(currentPosition);
-
- } else {
- // get average of the positions
- currPosTotal += speakers.getPosition();
- currPosCount++;
- }
-
-
- //} catch (RemoteException e) {
- // e.printStackTrace();
- //}
+ System.out.println("DEBUG: Turn on speaker!");
+ // start the speaker playback if the speaker is not playing yet
+ if (!speakers.getPlaybackState()) {
+
+ System.out.println("Turning a speaker On in room: " + room.getRoomID());
+ speakers.startPlayback();
+ speakers.setPosition(currentPosition);
+
+ } else {
+ // get average of the positions
+ currPosTotal += speakers.getPosition();
+ currPosCount++;
+ }