aboutsummaryrefslogtreecommitdiff
path: root/audio/softsynth/mt32/PartialManager.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-12-17 12:46:25 +0100
committerGitHub2016-12-17 12:46:25 +0100
commit2f90d7ba2286db79e28e9d4d59f3b082ca0becd7 (patch)
tree4024bd5ec26093efb2687fac9fc963e4371a81c6 /audio/softsynth/mt32/PartialManager.cpp
parentc8a2a6a89e98a5c5932094ebba913208f24e6e82 (diff)
parent1e23c91914cde7e9b9c47c9e727818d958e57e3f (diff)
downloadscummvm-rg350-2f90d7ba2286db79e28e9d4d59f3b082ca0becd7.tar.gz
scummvm-rg350-2f90d7ba2286db79e28e9d4d59f3b082ca0becd7.tar.bz2
scummvm-rg350-2f90d7ba2286db79e28e9d4d59f3b082ca0becd7.zip
Merge pull request #863 from csnover/munt-2.0.0
MT32: Update Munt to 2.0.0
Diffstat (limited to 'audio/softsynth/mt32/PartialManager.cpp')
-rwxr-xr-x[-rw-r--r--]audio/softsynth/mt32/PartialManager.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/audio/softsynth/mt32/PartialManager.cpp b/audio/softsynth/mt32/PartialManager.cpp
index 8ca6e4e3d7..7c702f7582 100644..100755
--- a/audio/softsynth/mt32/PartialManager.cpp
+++ b/audio/softsynth/mt32/PartialManager.cpp
@@ -1,5 +1,5 @@
/* Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009 Dean Beeler, Jerome Fisher
- * Copyright (C) 2011, 2012, 2013, 2014 Dean Beeler, Jerome Fisher, Sergey V. Mikayev
+ * Copyright (C) 2011-2016 Dean Beeler, Jerome Fisher, Sergey V. Mikayev
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
@@ -15,11 +15,16 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-//#include <cstring>
+#include <cstddef>
+#include <cstring>
-#include "mt32emu.h"
#include "internals.h"
+
#include "PartialManager.h"
+#include "Part.h"
+#include "Partial.h"
+#include "Poly.h"
+#include "Synth.h"
namespace MT32Emu {
@@ -275,7 +280,7 @@ void PartialManager::polyFreed(Poly *poly) {
const Poly *activePoly = synth->getPart(partNum)->getFirstActivePoly();
Bit32u polyCount = 0;
while (activePoly != NULL) {
- activePoly->getNext();
+ activePoly = activePoly->getNext();
polyCount++;
}
synth->printDebug("Part: %i, active poly count: %i\n", partNum, polyCount);
@@ -286,4 +291,4 @@ void PartialManager::polyFreed(Poly *poly) {
freePolys[firstFreePolyIndex] = poly;
}
-}
+} // namespace MT32Emu