|
24 | 24 |
|
25 | 25 | #include "common/util.h" |
26 | 26 | #include "common/math.h" |
27 | | -#include "common/sinewindows.h" |
28 | 27 | #include "common/error.h" |
29 | 28 | #include "common/memstream.h" |
30 | | -#include "common/mdct.h" |
31 | 29 | #include "common/huffman.h" |
32 | 30 |
|
| 31 | +#include "math/mdct.h" |
| 32 | +#include "math/sinewindows.h" |
| 33 | + |
33 | 34 | #include "audio/audiostream.h" |
34 | 35 |
|
35 | 36 | #include "audio/decoders/util.h" |
@@ -114,7 +115,7 @@ WMACodec::~WMACodec() { |
114 | 115 | delete _coefHuffman[i]; |
115 | 116 | } |
116 | 117 |
|
117 | | - for (Common::Array<Common::MDCT *>::iterator m = _mdct.begin(); m != _mdct.end(); ++m) |
| 118 | + for (Common::Array<Math::MDCT *>::iterator m = _mdct.begin(); m != _mdct.end(); ++m) |
118 | 119 | delete *m; |
119 | 120 | } |
120 | 121 |
|
@@ -459,12 +460,12 @@ void WMACodec::initCoefHuffman(float bps) { |
459 | 460 | void WMACodec::initMDCT() { |
460 | 461 | _mdct.reserve(_blockSizeCount); |
461 | 462 | for (int i = 0; i < _blockSizeCount; i++) |
462 | | - _mdct.push_back(new Common::MDCT(_frameLenBits - i + 1, true, 1.0)); |
| 463 | + _mdct.push_back(new Math::MDCT(_frameLenBits - i + 1, true, 1.0)); |
463 | 464 |
|
464 | 465 | // Init MDCT windows (simple sine window) |
465 | 466 | _mdctWindow.reserve(_blockSizeCount); |
466 | 467 | for (int i = 0; i < _blockSizeCount; i++) |
467 | | - _mdctWindow.push_back(Common::getSineWindow(_frameLenBits - i)); |
| 468 | + _mdctWindow.push_back(Math::getSineWindow(_frameLenBits - i)); |
468 | 469 | } |
469 | 470 |
|
470 | 471 | void WMACodec::initExponents() { |
@@ -801,7 +802,7 @@ bool WMACodec::decodeChannels(Common::BitStream8MSB &bits, int bSize, |
801 | 802 | } |
802 | 803 |
|
803 | 804 | bool WMACodec::calculateIMDCT(int bSize, bool msStereo, bool *hasChannel) { |
804 | | - Common::MDCT &mdct = *_mdct[bSize]; |
| 805 | + Math::MDCT &mdct = *_mdct[bSize]; |
805 | 806 |
|
806 | 807 | for (int i = 0; i < _channels; i++) { |
807 | 808 | int n4 = _blockLen / 2; |
|
0 commit comments