# HG changeset patch # User chainsaw # Date 1134782404 28800 # Node ID 53751ea823c3675e8cc863c8e1f9f6004515068f # Parent 65f2b5920a382b91a84c13361d9aa29e86d3caee [svn] Juggle some declarations around to reduce warnings. Also remove one debugging statement that triggers a warning. diff -r 65f2b5920a38 -r 53751ea823c3 Plugins/Input/wma/iir.c --- a/Plugins/Input/wma/iir.c Fri Dec 16 17:03:15 2005 -0800 +++ b/Plugins/Input/wma/iir.c Fri Dec 16 17:20:04 2005 -0800 @@ -22,6 +22,8 @@ /* IIR filter coefficients */ #include "iir.h" +#include +#include /* History for two filters */ static sXYData data_history[EQ_MAX_BANDS][EQ_CHANNELS] __attribute__((aligned)); @@ -34,6 +36,20 @@ static int band_num = 10; /* Set num band: 10 - default in XMMS */ static int extra_filtering = 1; /* Set extra filtering: 0 - OFF, 1 - ON */ +/* BETA, ALPHA, GAMMA */ +static sIIRCoefficients iir_cforiginal10[] __attribute__((aligned)) = { + { (9.9421504945e-01), (2.8924752745e-03), (1.9941421835e+00) }, /* 60.0 Hz */ + { (9.8335039428e-01), (8.3248028618e-03), (1.9827686547e+00) }, /* 170.0 Hz */ + { (9.6958094144e-01), (1.5209529281e-02), (1.9676601546e+00) }, /* 310.0 Hz */ + { (9.4163923306e-01), (2.9180383468e-02), (1.9345490229e+00) }, /* 600.0 Hz */ + { (9.0450844499e-01), (4.7745777504e-02), (1.8852109613e+00) }, /* 1000.0 Hz */ + { (7.3940088234e-01), (1.3029955883e-01), (1.5829158753e+00) }, /* 3000.0 Hz */ + { (5.4697667908e-01), (2.2651166046e-01), (1.0153238114e+00) }, /* 6000.0 Hz */ + { (3.1023210589e-01), (3.4488394706e-01), (-1.8142472036e-01) }, /* 12000.0 Hz */ + { (2.6718639778e-01), (3.6640680111e-01), (-5.2117742267e-01) }, /* 14000.0 Hz */ + { (2.4201241845e-01), (3.7899379077e-01), (-8.0847117831e-01) }, /* 16000.0 Hz */ +}; + int round_trick(float floatvalue_to_round); /* Round function provided by Frank Klemm which saves around 100K diff -r 65f2b5920a38 -r 53751ea823c3 Plugins/Input/wma/iir.h --- a/Plugins/Input/wma/iir.h Fri Dec 16 17:03:15 2005 -0800 +++ b/Plugins/Input/wma/iir.h Fri Dec 16 17:20:04 2005 -0800 @@ -23,15 +23,7 @@ #define IIR_H #include -#if 0 -#include -#include -#include -#endif -#include #include -#include -#include #include #include @@ -62,20 +54,6 @@ float y[3]; /* y[n], y[n-1], y[n-2] */ }sXYData; -/* BETA, ALPHA, GAMMA */ -static sIIRCoefficients iir_cforiginal10[] __attribute__((aligned)) = { - { (9.9421504945e-01), (2.8924752745e-03), (1.9941421835e+00) }, /* 60.0 Hz */ - { (9.8335039428e-01), (8.3248028618e-03), (1.9827686547e+00) }, /* 170.0 Hz */ - { (9.6958094144e-01), (1.5209529281e-02), (1.9676601546e+00) }, /* 310.0 Hz */ - { (9.4163923306e-01), (2.9180383468e-02), (1.9345490229e+00) }, /* 600.0 Hz */ - { (9.0450844499e-01), (4.7745777504e-02), (1.8852109613e+00) }, /* 1000.0 Hz */ - { (7.3940088234e-01), (1.3029955883e-01), (1.5829158753e+00) }, /* 3000.0 Hz */ - { (5.4697667908e-01), (2.2651166046e-01), (1.0153238114e+00) }, /* 6000.0 Hz */ - { (3.1023210589e-01), (3.4488394706e-01), (-1.8142472036e-01) }, /* 12000.0 Hz */ - { (2.6718639778e-01), (3.6640680111e-01), (-5.2117742267e-01) }, /* 14000.0 Hz */ - { (2.4201241845e-01), (3.7899379077e-01), (-8.0847117831e-01) }, /* 16000.0 Hz */ -}; - /* Gain for each band * values should be between -0.2 and 1.0 */ float gain[EQ_MAX_BANDS][EQ_CHANNELS] __attribute__((aligned)); diff -r 65f2b5920a38 -r 53751ea823c3 Plugins/Input/wma/libffwma/asf.c --- a/Plugins/Input/wma/libffwma/asf.c Fri Dec 16 17:03:15 2005 -0800 +++ b/Plugins/Input/wma/libffwma/asf.c Fri Dec 16 17:20:04 2005 -0800 @@ -563,10 +563,6 @@ assert((url_ftell(&s->pb) - s->data_offset) % asf->packet_size == 0); c = get_byte(pb); - if (c != 0x82) { - if (!url_feof(pb)) - printf("ff asf bad header %x at:%lld\n", c, url_ftell(pb)); - } if ((c & 0x0f) == 2) { // always true for now if (get_le16(pb) != 0) { if (!url_feof(pb))