Fix for MSVC
MSVC won't accept zero-sized arrays at the end of structs, if that struct is used in another struct that's not also at the end. This wastes a float for each FILTER object
This commit is contained in:
@@ -10,7 +10,11 @@ extern "C" {
|
||||
|
||||
typedef struct {
|
||||
ALfloat coeff;
|
||||
#ifndef _MSC_VER
|
||||
ALfloat history[0];
|
||||
#else
|
||||
ALfloat history[1];
|
||||
#endif
|
||||
} FILTER;
|
||||
|
||||
static __inline ALfloat lpFilter4P(FILTER *iir, ALuint offset, ALfloat input)
|
||||
|
||||
Reference in New Issue
Block a user