On Mon, 12 Mar 2012, Marc-Andr? Lureau wrote:

> On Mon, Mar 12, 2012 at 10:42 PM, malc <av1...@comtv.ru> wrote:
> > nominal_volume.[lr] is int64_t... i don't get where you take this ^32
> > from.
> 
> from where it is defined, audio/audio.c:
> 
> const struct mixeng_volume nominal_volume = {
>     .mute = 0,
> #ifdef FLOAT_MIXENG
>     .r = 1.0,
>     .l = 1.0,
> #else
>     .r = 1ULL << 32,
>     .l = 1ULL << 32,
> #endif
> };
> 

1 << 32 = 1.0 in 64(32.32) fixed point... the type of l/r is int64_t

-- 
mailto:av1...@comtv.ru

Reply via email to