[PATCH 0/2] small testresampler bugfix and compilation fix

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[PATCH 0/2] small testresampler bugfix and compilation fix

Stefan Westerfeld
Here are two small fixes against beast master.

Stefan Westerfeld (2):
  TESTS: testresampler: fix signedness related bug in FFT windowing
  BEAST: bstmain.cc: fix compilation problem (__unused undefined)

 beast-gtk/bstmain.cc   | 2 +-
 tests/testresampler.cc | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--
2.7.4

_______________________________________________
beast mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/beast
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[PATCH 1/2] TESTS: testresampler: fix signedness related bug in FFT windowing

Stefan Westerfeld
Signed-off-by: Stefan Westerfeld <[hidden email]>
---
 tests/testresampler.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/testresampler.cc b/tests/testresampler.cc
index 3d4c334..07000f4 100644
--- a/tests/testresampler.cc
+++ b/tests/testresampler.cc
@@ -534,7 +534,7 @@ perform_test()
 
       for (guint i = 0; i < FFT_SIZE; i++)
  {
-  double w = bse_window_blackman (double (2 * i - FFT_SIZE) / FFT_SIZE);
+  double w = bse_window_blackman ((2.0 * i - FFT_SIZE) / FFT_SIZE);
 
   normalize += w;
   error_spectrum_error[i] *= w;
--
2.7.4

_______________________________________________
beast mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/beast
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[PATCH 2/2] BEAST: bstmain.cc: fix compilation problem (__unused undefined)

Stefan Westerfeld
In reply to this post by Stefan Westerfeld
Signed-off-by: Stefan Westerfeld <[hidden email]>
---
 beast-gtk/bstmain.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/beast-gtk/bstmain.cc b/beast-gtk/bstmain.cc
index 0ff53b3..6c5408d 100644
--- a/beast-gtk/bstmain.cc
+++ b/beast-gtk/bstmain.cc
@@ -537,7 +537,7 @@ static int
 main_run_event_loop ()
 {
   // register embedded methods
-  static __unused bool initialized = []() { Py_InitModule ("bst", embedded_bst_methods); return true; } ();
+  static RAPICORN_UNUSED bool initialized = []() { Py_InitModule ("bst", embedded_bst_methods); return true; } ();
 
   // run main loop from Python
   String pyfile = Bse::Path::join (Bse::installpath (Bse::INSTALLPATH_PYBEASTDIR), "main.py");
--
2.7.4

_______________________________________________
beast mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/beast
Loading...