On Mon, 12 Mar 2012, Marc-Andr? Lureau wrote: > On Mon, Mar 12, 2012 at 9:29 PM, malc <av1...@comtv.ru> wrote: > >> So what I meant is rather G_MAXUINT32. > > > > Just leave it as is, it's perfectly fine. > > But it's not convenient to fit into a regular integer, as the number > of steps is 2^32 + 1. Why is it preferrable this way rather than a > MAXUINT? I must be missing something. Hardware range for example is > usually 0...2^nbits-1 >
I really do not understand your point at all, mixeng_volume fields are int64_t's it's irrelevant what you initialize them with, they are still 64bit integers, and UINT_MAX as i already said is not even correct, it's 1/(2**32-1) less than one in fixed point. -- mailto:av1...@comtv.ru