@Override
    protected String doInBackground(Void... params) {
      while (isDbMeasuring) {
        try {
          publishProgress(
              (int) Math.round((87 + (20.0 * Math.log10((double) getAmplitude() / 32767)))));
          TimeUnit.MILLISECONDS.sleep(100);
        } catch (InterruptedException | RuntimeException e) {
          e.printStackTrace();
        }
      }

      return null;
    }