given that my flac file has this info:

track.flac: comment[0]: REPLAYGAIN_TRACK_PEAK=0.9772033
track.flac: comment[1]: REPLAYGAIN_TRACK_GAIN=-3.22 dB
track.flac: comment[2]: REPLAYGAIN_ALBUM_PEAK=1.00000000
track.flac: comment[3]: REPLAYGAIN_ALBUM_GAIN=-3.26 dB

how can apply this track’s gain to the dsp_gain plugin? i know it has a floating point value that is a multiplication factor on the sound sample:

[code:i07103ug]outbuffer[(count * channels) + count2] = inbuffer[(count * channels) + count2] * dspgain;[/code:i07103ug]

the above code is from fmodapi/examples/plugin_dev/dsp_gain/main.c

what value do i set for dspgain (a float) to get the multiplication factor proper for the decibels that replygain gives me in the flac comments (in this case, -3.22dB)?

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.