2022-09-13 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdlibrary(1) that ccould cause the waveform display
	in the 'Edit Audio' dialog to truncate the end of the waveform.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2022-09-13 09:38:15 -04:00
parent d91ea3dae3
commit 8c8581c86e
2 changed files with 4 additions and 1 deletions

View File

@ -23290,3 +23290,6 @@
2022-09-11 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdadmin(1) that made it impossible to set
a 'Startup Cart' button using the 'Select' button.
2022-09-13 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdlibrary(1) that ccould cause the waveform display
in the 'Edit Audio' dialog to truncate the end of the waveform.

View File

@ -686,7 +686,7 @@ bool RDMarkerView::setCut(QString *err_msg,unsigned cartnum,int cutnum)
while(d_wave_factory->energySize()>=(d_width*d_max_shrink_factor)) {
d_max_shrink_factor=d_max_shrink_factor*2;
}
d_pad_size=(d_width*d_max_shrink_factor-d_wave_factory->energySize())/d_max_shrink_factor-1;
d_pad_size=64+(d_width*d_max_shrink_factor-d_wave_factory->energySize())/d_max_shrink_factor-1;
d_shrink_factor=d_max_shrink_factor;
WriteWave();