Displaying 1 result from an estimated 1 matches for "vorbis_gainadj".
2015 May 15
1
Extension to libvorbis for lossless volume changes
I added a new function to libvorbis that allows lossless changes of the
volume to an vorbis_block. This can help to get reasonable loudness on
hardware players that do not support the Replay Gain tags.
int vorbis_gainadj(vorbis_block *vb, ogg_packet *op, float* dbgain);
dbgain contains the relative adjustment for each channel.
The trick is quite simple. I adjust the first 2 floor values for each
channel if they are nonzero. Of course, it only works with floor type 1
and returns an error with floor 0. But I have...