Hello,

I wasn't sure if this was by design or not, but I noticed if I set the  
Cut Gain in the Edit Markers to something like -1.9 dB when I went  
back the value was -1.0 dB.  Or if I set it to 0.7 dB when I checked  
the value again it was 0.0 dB.

So I made a minor change in rdedit_audio.cpp and now the fraction  
portion is saved.  I have included the patch below.  If I need to send  
it to a different place or way please let me know.

Thanks
   -Scott


--- rdedit_audio.cpp.orig       2011-05-02 15:18:13.000000000 -0600
+++ rdedit_audio.cpp    2011-08-16 21:47:55.000000000 -0600
@@ -1597,11 +1597,11 @@

  void RDEditAudio::gainChangedData()
  {
-  int gain;
+  float gain;
    QString str;

-  if(sscanf((const char *)edit_gain_edit->text(),"%d",&gain)==1) {
-    edit_gain_control->setValue(gain*100);
+  if(sscanf((const char *)edit_gain_edit->text(),"%f",&gain)==1) {
+    edit_gain_control->setValue((int)(gain*100.0f));
    }
    str=QString(tr("dB"));
    edit_gain_edit->setText(QString().sprintf("%4.1f %s",

_______________________________________________
Rivendell-dev mailing list
[email protected]
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev

Reply via email to