add ReplayGainReferenceLoudness constant
authorJosh Coalson <jcoalson@users.sourceforce.net>
Thu, 14 Sep 2006 00:39:32 +0000 (00:39 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Thu, 14 Sep 2006 00:39:32 +0000 (00:39 +0000)
include/share/replaygain_analysis.h
src/share/replaygain_analysis/replaygain_analysis.c

index 6f52dc6..f992c45 100644 (file)
@@ -44,11 +44,13 @@ extern "C" {
 \r
 typedef float   Float_t;         /* Type used for filtering */\r
 \r
+Float_t ReplayGainReferenceLoudness; /* in dB SPL, currently == 89.0 */\r
+\r
 int     InitGainAnalysis ( long samplefreq );\r
 int     AnalyzeSamples   ( const Float_t* left_samples, const Float_t* right_samples, size_t num_samples, int num_channels );\r
 int            ResetSampleFrequency ( long samplefreq );\r
-Float_t   GetTitleGain     ( void );\r
-Float_t   GetAlbumGain     ( void );\r
+Float_t GetTitleGain     ( void );\r
+Float_t GetAlbumGain     ( void );\r
 \r
 #ifdef __cplusplus\r
 }\r
index 5b9637c..a11465c 100644 (file)
 
 #include "replaygain_analysis.h"
 
+extern Float_t ReplayGainReferenceLoudness = 89.0; /* in dB SPL */
+
 typedef unsigned short  Uint16_t;
 typedef signed short    Int16_t;
 typedef unsigned int    Uint32_t;