diff options
author | Chris Robinson <[email protected]> | 2010-11-26 02:53:15 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-11-26 02:53:15 -0800 |
commit | 7287b5cd3c251fb33a002a90508db398be52cd2c (patch) | |
tree | 685299b506b1a7c3e1439c4c2fbe64b2ca11d7d5 /OpenAL32/Include/alSource.h | |
parent | 0692cf304d92d546f2ab5252df58d3a82a2cfb72 (diff) |
Make the buffer padding size dependent on the resampler
Diffstat (limited to 'OpenAL32/Include/alSource.h')
-rw-r--r-- | OpenAL32/Include/alSource.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index d60416b6..4af7f99d 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -22,6 +22,17 @@ typedef enum { } resampler_t; extern resampler_t DefaultResampler; +static const ALsizei ResamplerPadding[RESAMPLER_MAX] = { + 0, /* Point */ + 1, /* Linear */ + 2, /* Cubic */ +}; +static const ALsizei ResamplerPrePadding[RESAMPLER_MAX] = { + 0, /* Point */ + 0, /* Linear */ + 1, /* Cubic */ +}; + typedef struct ALbufferlistitem { struct ALbuffer *buffer; |