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 | |
parent | 0692cf304d92d546f2ab5252df58d3a82a2cfb72 (diff) |
Make the buffer padding size dependent on the resampler
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alBuffer.h | 3 | ||||
-rw-r--r-- | OpenAL32/Include/alSource.h | 11 |
2 files changed, 11 insertions, 3 deletions
diff --git a/OpenAL32/Include/alBuffer.h b/OpenAL32/Include/alBuffer.h index 9ba3217d..e11fe210 100644 --- a/OpenAL32/Include/alBuffer.h +++ b/OpenAL32/Include/alBuffer.h @@ -7,9 +7,6 @@ extern "C" { #endif -#define BUFFER_PADDING 2 -#define BUFFER_PREPADDING 1 - typedef struct ALbuffer { ALvoid *data; 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; |