public synchronized void setSoundVolume(int vol) {
   if (asound != null) {
     asound.setVolume(vol);
   }
 }