|
Description |
Since rounding is done in the decoder plugins (in the case of mad 24->16 bit) information that could be used to maintain maximum 16bit quality (e.g. use the complete 16bit range) in the replaygain plugin is lost.
Also should at one point the maximum_peak information provided in some mp3s be used. The streams arriving at the plugin will already have distortions due to clipping.
Suggested solution:
a) Provide a function set_scaling() in the decoder plugins which can than be called by the replay_gain, etc. plugins.
b) Do not do any clipping in the decoder plugin. Instead do it when all plugins have been applied.
a) is probably more efficient, while b) seems to be cleaner. |