qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 03/11] audio: use a nominal volume of UINT_MAX


From: malc
Subject: Re: [Qemu-devel] [PATCH 03/11] audio: use a nominal volume of UINT_MAX
Date: Tue, 13 Mar 2012 02:52:20 +0400 (MSK)
User-agent: Alpine 2.00 (LNX 1167 2008-08-23)

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

> On Mon, Mar 12, 2012 at 10:42 PM, malc <address@hidden> 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:address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]