source:
downloads/openal-0.0.8/src/arch/portable/floatmul.c
@
50
| Last change on this file since 50 was 17, checked in by landauf, 18 years ago | |
|---|---|
| File size: 240 bytes | |
| Rev | Line | |
|---|---|---|
| [17] | 1 | #include "al_siteconfig.h" |
| 2 | ||
| 3 | #include <AL/al.h> | |
| 4 | ||
| 5 | #include "al_main.h" | |
| 6 | ||
| 7 | void _alFloatMul( ALshort *bpt, ALfloat sa, ALuint len) { | |
| 8 | while(len--) { | |
| 9 | #if USE_LRINT | |
| 10 | bpt[len] = lrintf(bpt[len] * sa); | |
| 11 | #else | |
| 12 | bpt[len] *= sa; | |
| 13 | #endif | |
| 14 | } | |
| 15 | ||
| 16 | return; | |
| 17 | } |
Note: See TracBrowser
for help on using the repository browser.










