Skip to content

Commit

Permalink
get_playback_level(): Fix formula for conversion to dB.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters committed Nov 11, 2015
1 parent 4136eba commit 30e3e16
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Version 0.6.1
=============

Bugfix release: The playback-level property reported a wrong value when read.
Setting it to a specfic value worked corectly; also the default was correctly
set to 92dB (although it was incorrectly reported as 28.24dB).

Version 0.6
===========

Expand Down
2 changes: 1 addition & 1 deletion src/fftearmodel.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ get_playback_level (PeaqEarModel const *model)
{
PeaqFFTEarModel *fft_model = PEAQ_FFTEARMODEL (model);
return 10. * log10 (fft_model->level_factor *
(GAMMA / 4 * (FFT_FRAMESIZE - 1) / FFT_FRAMESIZE));
8. / 3. * (GAMMA / 4 * (FFT_FRAMESIZE - 1)) * (GAMMA / 4 * (FFT_FRAMESIZE - 1)));
}

static void
Expand Down

0 comments on commit 30e3e16

Please sign in to comment.