annotate src/flac-1.2.1/include/share/replaygain_analysis.h @ 169:223a55898ab9 tip default

Add null config files
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 02 Mar 2020 14:03:47 +0000
parents 98c1576536ae
children
rev   line source
cannam@86 1 /*
cannam@86 2 * ReplayGainAnalysis - analyzes input samples and give the recommended dB change
cannam@86 3 * Copyright (C) 2001 David Robinson and Glen Sawyer
cannam@86 4 *
cannam@86 5 * This library is free software; you can redistribute it and/or
cannam@86 6 * modify it under the terms of the GNU Lesser General Public
cannam@86 7 * License as published by the Free Software Foundation; either
cannam@86 8 * version 2.1 of the License, or (at your option) any later version.
cannam@86 9 *
cannam@86 10 * This library is distributed in the hope that it will be useful,
cannam@86 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@86 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
cannam@86 13 * Lesser General Public License for more details.
cannam@86 14 *
cannam@86 15 * You should have received a copy of the GNU Lesser General Public
cannam@86 16 * License along with this library; if not, write to the Free Software
cannam@86 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
cannam@86 18 *
cannam@86 19 * concept and filter values by David Robinson (David@Robinson.org)
cannam@86 20 * -- blame him if you think the idea is flawed
cannam@86 21 * coding by Glen Sawyer (glensawyer@hotmail.com) 442 N 700 E, Provo, UT 84606 USA
cannam@86 22 * -- blame him if you think this runs too slowly, or the coding is otherwise flawed
cannam@86 23 * minor cosmetic tweaks to integrate with FLAC by Josh Coalson
cannam@86 24 *
cannam@86 25 * For an explanation of the concepts and the basic algorithms involved, go to:
cannam@86 26 * http://www.replaygain.org/
cannam@86 27 */
cannam@86 28
cannam@86 29 #ifndef GAIN_ANALYSIS_H
cannam@86 30 #define GAIN_ANALYSIS_H
cannam@86 31
cannam@86 32 #include <stddef.h>
cannam@86 33
cannam@86 34 #define GAIN_NOT_ENOUGH_SAMPLES -24601
cannam@86 35 #define GAIN_ANALYSIS_ERROR 0
cannam@86 36 #define GAIN_ANALYSIS_OK 1
cannam@86 37
cannam@86 38 #define INIT_GAIN_ANALYSIS_ERROR 0
cannam@86 39 #define INIT_GAIN_ANALYSIS_OK 1
cannam@86 40
cannam@86 41 #ifdef __cplusplus
cannam@86 42 extern "C" {
cannam@86 43 #endif
cannam@86 44
cannam@86 45 typedef float Float_t; /* Type used for filtering */
cannam@86 46
cannam@86 47 extern Float_t ReplayGainReferenceLoudness; /* in dB SPL, currently == 89.0 */
cannam@86 48
cannam@86 49 int InitGainAnalysis ( long samplefreq );
cannam@86 50 int AnalyzeSamples ( const Float_t* left_samples, const Float_t* right_samples, size_t num_samples, int num_channels );
cannam@86 51 int ResetSampleFrequency ( long samplefreq );
cannam@86 52 Float_t GetTitleGain ( void );
cannam@86 53 Float_t GetAlbumGain ( void );
cannam@86 54
cannam@86 55 #ifdef __cplusplus
cannam@86 56 }
cannam@86 57 #endif
cannam@86 58
cannam@86 59 #endif /* GAIN_ANALYSIS_H */