1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-27 18:12:41 +01:00
Commit Graph

7 Commits

Author SHA1 Message Date
Mark Furneaux
efa58bb852 Actually initialize the array 2014-12-22 00:05:46 -05:00
Mark Furneaux
6157865d7b Initialize array in a nicer way 2014-12-21 23:53:42 -05:00
Mark Furneaux
1d31378174 Fix moodbars not generating correctly
The magnitude output from gstfastspectrum was not initialized for the first fft.
In some cases, the memory would contain data that upon math operations becomes nan.
This causes one or more colours of the moodbar to be generated blank, resulting in missing colours or just plain black moodbars.
2014-12-21 23:11:02 -05:00
John Maguire
fb5181a6e9 Tidy up locking usage around FFTW.
* Move QMutex into the class instead of static.
* Use QMutexLocker
* Only lock around FFTW plan & destroy functions.
2014-12-10 18:57:35 +01:00
Andreas
b5567a7b27 Try fixing race condition in fftw by adding mutex for fftw_* function calls suggested here: http://www.fftw.org/fftw3_doc/Thread-safety.html. Updates #4643. 2014-12-07 14:07:53 +01:00
David Sansome
a2af170ce5 Use guint instead of uint to stop mingw complaining 2014-09-25 14:48:59 +00:00
David Sansome
50551d987a Rewrite moodbar stuff for gstreamer-1.0:
- Rewrite gstspectrum (1.0) to use FFTW (2x faster) and emit raw magnitude
  values (not log scaled).
- Rewrite the moodbar generation code to be somewhat understandable, and
  do it in Clementine instead of gstreamer.
2014-09-21 19:38:13 +10:00