diff options
author | Chris Robinson <[email protected]> | 2017-05-23 00:02:04 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-05-23 00:35:22 -0700 |
commit | e6be113903e9a92734b1885b1506c8940940705f (patch) | |
tree | 52076c9082f76abede0d846939660dc82980b461 /OpenAL32 | |
parent | 49e5c535915f52b7888a884f4ed8925682336b28 (diff) |
Add an option to dither 8- and 16-bit output
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alMain.h | 4 | ||||
-rw-r--r-- | OpenAL32/Include/alu.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index ec65c8fc..bbc24f89 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -798,6 +798,10 @@ struct ALCdevice_struct /* Delay buffers used to compensate for speaker distances. */ DistanceComp ChannelDelay[MAX_OUTPUT_CHANNELS]; + /* Dithering control. */ + bool DitherEnabled; + ALuint DitherSeed; + /* Running count of the mixer invocations, in 31.1 fixed point. This * actually increments *twice* when mixing, first at the start and then at * the end, so the bottom bit indicates if the device is currently mixing diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index 72b3659c..8a56ddb2 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -40,6 +40,9 @@ struct ALvoice; struct ALeffectslot; +#define DITHER_RNG_SEED 22222 + + enum SpatializeMode { SpatializeOff = AL_FALSE, SpatializeOn = AL_TRUE, |