[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Ben Davis wrote:
Nope. It's only GCC's division helper routine that's dangerous, because the
memory it resides in can't be locked. The above code compiles only to
instructions, no calls to routines anywhere, so it's perfectly safe.
I see. Will that code also be useable for 32-bit samples? If I'm
understanding it right:
((int)((LONG_LONG)(s32) * ((v16) << 16) >> 32))
I wouldn't object to adding 32-bit audio output support. However,
without using a 64-bit buffer, you'll still hit clamping issues.
- Kitty Cat