[beast/devel: 14/28] BSE: allow volume xinfo with volume >= 1 (for making samples louder)



commit ce3e2bd2fb693d14a1fec54c2f4d0e92271f77c0
Author: Stefan Westerfeld <stefan space twc de>
Date:   Thu Mar 21 16:54:17 2013 +0100

    BSE: allow volume xinfo with volume >= 1 (for making samples louder)

 bse/gsldatahandle.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/bse/gsldatahandle.cc b/bse/gsldatahandle.cc
index a685f49..ccb45b7 100644
--- a/bse/gsldatahandle.cc
+++ b/bse/gsldatahandle.cc
@@ -244,7 +244,7 @@ gsl_data_handle_volume (GslDataHandle *dhandle)
   gfloat f = bse_xinfos_get_float (dhandle->setup.xinfos, "volume");
   dhandle->spinlock.unlock();
   /* no (or invalid) volume setting means that we replay without scaling */
-  if (f <= 0 || f > 1.0)
+  if (f <= 0)
     f = 1.0;
   return f;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]