From 9e112b433f74ce32a27d58b9467a2a9015d14b60 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Mon, 18 Dec 2023 12:26:30 -0500 Subject: [PATCH] 2023-12-18 Fred Gleason * Fixed a regression in the 'Cut Info / Record' dialog in rdlibrary(1) that caused the audio meter to fail to be zeroed when resetting from record ready. Signed-off-by: Fred Gleason --- ChangeLog | 4 ++++ rdlibrary/record_cut.cpp | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 22eade3e..795fb1bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24570,3 +24570,7 @@ 2023-12-18 Fred Gleason * Fixed regressions in 'RDCae' and the HPI driver in caed(8) that caused the length of audio captures to be reported incorrectly. +2023-12-18 Fred Gleason + * Fixed a regression in the 'Cut Info / Record' dialog in + rdlibrary(1) that caused the audio meter to fail to be zeroed + when resetting from record ready. diff --git a/rdlibrary/record_cut.cpp b/rdlibrary/record_cut.cpp index 496bdfb3..9deb3b06 100644 --- a/rdlibrary/record_cut.cpp +++ b/rdlibrary/record_cut.cpp @@ -736,7 +736,7 @@ void RecordCut::playStoppedData(unsigned serial) is_recording=false; rec_meter->setLeftSolidBar(-10000); rec_meter->setRightSolidBar(-10000); - if(is_closing) { + if(is_closing) { is_closing=false; closeData(); } @@ -745,13 +745,14 @@ void RecordCut::playStoppedData(unsigned serial) void RecordCut::recordStoppedData(int card,int stream) { - //printf("recordStoppedData()\n"); rda->cae()->unloadRecord(rec_card_no[0],rec_port_no[0]); rec_timer->stop(); rec_play_button->off(); rec_stop_button->on(); rec_record_button->off(); rec_meter->resetClipLight(); + rec_meter->setLeftSolidBar(-10000); + rec_meter->setRightSolidBar(-10000); is_playing=false; is_recording=false; } @@ -759,7 +760,6 @@ void RecordCut::recordStoppedData(int card,int stream) void RecordCut::recordUnloadedData(int card,int stream,unsigned len) { - //printf("recordUnloadedData(%d,%d,%u)\n",card,stream,len); QString filename; rec_meter->setLeftSolidBar(-100000);