FM-TOWNS AUDIO: Fix GCC warnings

This commit is contained in:
athrxx 2011-05-16 21:56:14 +02:00 committed by Willem Jan Palenstijn
parent d3e92f0b81
commit 726a7f3b1a
2 changed files with 2 additions and 3 deletions

View File

@ -18,8 +18,6 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* *
* $URL: $
* $Id: $
*/ */
#include "audio/softsynth/fmtowns_pc98/towns_midi.h" #include "audio/softsynth/fmtowns_pc98/towns_midi.h"

View File

@ -928,7 +928,7 @@ bool TownsPC98_FmSynth::init() {
} }
void TownsPC98_FmSynth::reset() { void TownsPC98_FmSynth::reset() {
Common::StackLock lock(_mutex); lock();
for (int i = 0; i < _numChan; i++) { for (int i = 0; i < _numChan; i++) {
for (int ii = 0; ii < 4; ii++) for (int ii = 0; ii < 4; ii++)
_chanInternal[i].opr[ii]->reset(); _chanInternal[i].opr[ii]->reset();
@ -948,6 +948,7 @@ void TownsPC98_FmSynth::reset() {
if (_prc) if (_prc)
_prc->reset(); _prc->reset();
#endif #endif
unlock();
} }
void TownsPC98_FmSynth::writeReg(uint8 part, uint8 regAddress, uint8 value) { void TownsPC98_FmSynth::writeReg(uint8 part, uint8 regAddress, uint8 value) {