Mercurial > audlegacy-plugins
comparison src/flacng/plugin.c @ 2991:2cdf6400594c
flacng: enable replaygain
| author | Teemu Torma <teemu@torma.org> |
|---|---|
| date | Tue, 10 Feb 2009 23:56:41 +0100 |
| parents | 3134a0987162 |
| children | b7c181d0b325 |
comparison
equal
deleted
inserted
replaced
| 2990:be86c72a06c9 | 2991:2cdf6400594c |
|---|---|
| 329 | 329 |
| 330 stream_info.samplerate = main_info->stream.samplerate; | 330 stream_info.samplerate = main_info->stream.samplerate; |
| 331 stream_info.channels = main_info->stream.channels; | 331 stream_info.channels = main_info->stream.channels; |
| 332 main_info->metadata_changed = FALSE; | 332 main_info->metadata_changed = FALSE; |
| 333 | 333 |
| 334 ReplayGainInfo rg_info = get_replay_gain(main_info); | |
| 335 playback->set_replaygain_info(playback, &rg_info); | |
| 336 | |
| 334 if (!playback->output->open_audio(SAMPLE_FMT(main_info->stream.bits_per_sample), | 337 if (!playback->output->open_audio(SAMPLE_FMT(main_info->stream.bits_per_sample), |
| 335 main_info->stream.samplerate, | 338 main_info->stream.samplerate, |
| 336 main_info->stream.channels)) { | 339 main_info->stream.channels)) { |
| 337 playback->playing = FALSE; | 340 playback->playing = FALSE; |
| 338 _ERROR("Could not open output plugin!"); | 341 _ERROR("Could not open output plugin!"); |
