mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
use double for scale factor instead of float
This commit is contained in:
@@ -46,6 +46,6 @@ typedef struct {
|
|||||||
void FLAC__replaygain_synthesis__init_dither_context(DitherContext *dither, int bits, int shapingtype);
|
void FLAC__replaygain_synthesis__init_dither_context(DitherContext *dither, int bits, int shapingtype);
|
||||||
|
|
||||||
/* scale = (float) pow(10., (double)replaygain * 0.05); */
|
/* scale = (float) pow(10., (double)replaygain * 0.05); */
|
||||||
size_t FLAC__replaygain_synthesis__apply_gain(FLAC__byte *data_out, FLAC__bool little_endian_data_out, FLAC__bool unsigned_data_out, const FLAC__int32 * const input[], unsigned wide_samples, unsigned channels, const unsigned source_bps, const unsigned target_bps, const float scale, const FLAC__bool hard_limit, FLAC__bool do_dithering, DitherContext *dither_context);
|
size_t FLAC__replaygain_synthesis__apply_gain(FLAC__byte *data_out, FLAC__bool little_endian_data_out, FLAC__bool unsigned_data_out, const FLAC__int32 * const input[], unsigned wide_samples, unsigned channels, const unsigned source_bps, const unsigned target_bps, const double scale, const FLAC__bool hard_limit, FLAC__bool do_dithering, DitherContext *dither_context);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -288,7 +288,7 @@ static FLAC__INLINE FLAC__int64 dither_output_(DitherContext *d, FLAC__bool do_d
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
size_t FLAC__replaygain_synthesis__apply_gain(FLAC__byte *data_out, FLAC__bool little_endian_data_out, FLAC__bool unsigned_data_out, const FLAC__int32 * const input[], unsigned wide_samples, unsigned channels, const unsigned source_bps, const unsigned target_bps, const float scale, const FLAC__bool hard_limit, FLAC__bool do_dithering, DitherContext *dither_context)
|
size_t FLAC__replaygain_synthesis__apply_gain(FLAC__byte *data_out, FLAC__bool little_endian_data_out, FLAC__bool unsigned_data_out, const FLAC__int32 * const input[], unsigned wide_samples, unsigned channels, const unsigned source_bps, const unsigned target_bps, const double scale, const FLAC__bool hard_limit, FLAC__bool do_dithering, DitherContext *dither_context)
|
||||||
{
|
{
|
||||||
static const FLAC__int32 conv_factors_[33] = {
|
static const FLAC__int32 conv_factors_[33] = {
|
||||||
-1, /* 0 bits-per-sample (not supported) */
|
-1, /* 0 bits-per-sample (not supported) */
|
||||||
|
|||||||
Reference in New Issue
Block a user