Welcome to the Rockbox Technical Forums!
Am I correct in thinking that ReplayGain works in the same way as the software EQ i.e. it's done using the CPU?
Is there a technical reason why Rockbox couldn't use a player's built-in volume adjustment
It would save significant battery life, would it not?
Is there a technical reason why Rockbox couldn't use a player's built-in volume adjustment (is that using the DAC? I don't know) in a sort of optional low precision ReplayGain mode (on compatible outputs)?
Because replaygain is a digital adjustment, and must be done prior to loading samples onto the DAC. RG actually takes each sample and multiplies it by a constant. You can't do that with a DAC.
I don't think replaygain is CPU intensive enough to have a noticeable impact on CPU performance. Its just 44,100 16 bit multiplies per second. Thats not very much CPU time.
For the Pevent Clipping" option to work, the volume adjustment has to be done before the samples are scaled/clipped to the final output (which happens before the samples are sent to the DAC).
Maybe 'significant' was a bit of a stretch but it would save some. If it was enough to prevent a boost of the CPU (in the right conditions) I would imagine it would be noticeable.
Multiplying a stream of samples with a constant is the same as adjusting the volume.
For the typical stereo track, there are 88,200 32-bit multiplies. Still not that much CPU needed, compared to decompressing the audio.
Forgot about stereo. However, I believe its just a 16 bit multiply. At least I know my decoder only puts out a 16 bit sample, unless the playback engine is converting back to 32 bit?
So, it sounds like the WMA decoder should at some point be modified to return more than 16 bits per sample...
Page created in 0.105 seconds with 14 queries.