+ if( pending ) {
+ double pos = get_tracking_position();
+ double dir = get_tracking_direction() == PLAY_REVERSE ? -1 : 1;
+ SoundLevelClientFrame *frame =
+ (SoundLevelClientFrame *)get_gui_frame(pos, dir);
+ char string[BCSTRLEN];
+ sprintf(string, "%.2f", DB::todb(frame->max));
+ window->soundlevel_max->update(string);
+ sprintf(string, "%.2f", DB::todb(frame->rms));
+ window->soundlevel_rms->update(string);
+ }
+ window->unlock_window();