~audio-recorder/audio-recorder/trunk

« back to all changes in this revision

Viewing changes to src/main.c

  • Committer: Osmo Antero
  • Date: 2012-04-01 17:50:18 UTC
  • Revision ID: osmoma@gmail.com-20120401175018-8s296s7i5b6xnjwe
Version 0.8 with some clean ups.

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
 
209
209
    // Enum LevelTextType level_ttype;
210
210
    switch (g_win.level_ttype) {
211
 
     case LEVEL_TEXT_PERCENT:
212
 
        g_snprintf(text, 10, "%d%%", (int)round(peak*100.0));        
 
211
    case LEVEL_TEXT_PERCENT:
 
212
        g_snprintf(text, 10, "%d%%", (int)round(peak*100.0));
213
213
        break;
214
214
 
215
 
     case LEVEL_TEXT_DB:
 
215
    case LEVEL_TEXT_DB:
216
216
        g_snprintf(text, 10, "%ddB", (int)round(peak_dB));
217
217
        break;
218
218
 
219
 
     default:
 
219
    default:
220
220
        // Do not show any value or text
221
221
        return NULL;
222
222
    }