[FFmpeg-soc] [soc] libavsequencer [PATCH] Initial implementation of main AVSequencer public API header file

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Jul 10 20:15:06 CEST 2010


On Sat, Jul 10, 2010 at 07:49:31PM +0200, Sebastian Vater wrote:
> > Particularly
> > uint16_t volume_left;
> > uint8_t volume;
> 
> Changing volume_left & volume_right to 16.16 fixed point would be a good
> idea, though.
> 
> Normal single channel volume is from 0-255 since that is the volume
> range in the trackers.

You'll have to know it in the end, but I think having different
representations and ranges for the volume is going to be very confusing
for most people trying to understand the code.
Also converting 0-255 range to 16.16 should just be something like
(v << 8) + (v >> 7)


More information about the FFmpeg-soc mailing list