scanner beep

We noticed recently that the Concierge doesn't beep when the scanner is triggered.  I don't think it ever did, but I'm not sure.  I've checked the volume settings and they seem to be fine.  I've implemented the code below to programmatically beep on a scan, but it works only very occasionally.


public boolean onBarcodeScan(BarcodeScanEvent event) {
   String scanData = event.getCharacters();
   //beep for the scanner
   ToneGenerator generator = new ToneGenerator(AudioManager.STREAM_NOTIFICATION, 100);
//...code to handle barcode...
   return true;