[Scummvm-cvs-logs] SF.net SVN: scummvm:[38569] scummvm/trunk/engines/sci
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Fri Feb 20 01:31:22 CET 2009
Revision: 38569
http://scummvm.svn.sourceforge.net/scummvm/?rev=38569&view=rev
Author: thebluegr
Date: 2009-02-20 00:31:22 +0000 (Fri, 20 Feb 2009)
Log Message:
-----------
We only got 1 mixer - removed the unneeded file mixers.cpp
Modified Paths:
--------------
scummvm/trunk/engines/sci/module.mk
scummvm/trunk/engines/sci/sfx/core.cpp
scummvm/trunk/engines/sci/sfx/mixer/soft.cpp
scummvm/trunk/engines/sci/sfx/mixer.h
Removed Paths:
-------------
scummvm/trunk/engines/sci/sfx/mixer/mixers.cpp
Modified: scummvm/trunk/engines/sci/module.mk
===================================================================
--- scummvm/trunk/engines/sci/module.mk 2009-02-20 00:27:27 UTC (rev 38568)
+++ scummvm/trunk/engines/sci/module.mk 2009-02-20 00:31:22 UTC (rev 38569)
@@ -74,7 +74,6 @@
sfx/time.o \
sfx/timer.o \
sfx/device/devices.o \
- sfx/mixer/mixers.o \
sfx/mixer/soft.o \
sfx/player/players.o \
sfx/player/polled.o \
Modified: scummvm/trunk/engines/sci/sfx/core.cpp
===================================================================
--- scummvm/trunk/engines/sci/sfx/core.cpp 2009-02-20 00:27:27 UTC (rev 38568)
+++ scummvm/trunk/engines/sci/sfx/core.cpp 2009-02-20 00:31:22 UTC (rev 38569)
@@ -445,7 +445,7 @@
return;
}
- mixer = sfx_pcm_find_mixer(NULL);
+ mixer = getMixer();
pcm_device = &sfx_pcm_driver_scummvm;
player = sfx_find_player(NULL);
Deleted: scummvm/trunk/engines/sci/sfx/mixer/mixers.cpp
===================================================================
--- scummvm/trunk/engines/sci/sfx/mixer/mixers.cpp 2009-02-20 00:27:27 UTC (rev 38568)
+++ scummvm/trunk/engines/sci/sfx/mixer/mixers.cpp 2009-02-20 00:31:22 UTC (rev 38569)
@@ -1,45 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
-
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
-
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- * $URL$
- * $Id$
- *
- */
-
-#include "../mixer.h"
-#include "sci/include/resource.h"
-
-extern sfx_pcm_mixer_t sfx_pcm_mixer_soft_linear;
-
-static sfx_pcm_mixer_t *mixers[] = {
- &sfx_pcm_mixer_soft_linear,
- NULL
-};
-
-sfx_pcm_mixer_t *
-sfx_pcm_find_mixer(char *name) {
- int i = 0;
-
- if (name)
- while (mixers[i] && strcmp(name, mixers[i]->name))
- ++i;
-
- return mixers[i];
-}
Modified: scummvm/trunk/engines/sci/sfx/mixer/soft.cpp
===================================================================
--- scummvm/trunk/engines/sci/sfx/mixer/soft.cpp 2009-02-20 00:27:27 UTC (rev 38568)
+++ scummvm/trunk/engines/sci/sfx/mixer/soft.cpp 2009-02-20 00:31:22 UTC (rev 38569)
@@ -968,3 +968,5 @@
NULL,
NULL
};
+
+sfx_pcm_mixer_t* getMixer() { return &sfx_pcm_mixer_soft_linear; }
\ No newline at end of file
Modified: scummvm/trunk/engines/sci/sfx/mixer.h
===================================================================
--- scummvm/trunk/engines/sci/sfx/mixer.h 2009-02-20 00:27:27 UTC (rev 38568)
+++ scummvm/trunk/engines/sci/sfx/mixer.h 2009-02-20 00:31:22 UTC (rev 38569)
@@ -122,4 +122,6 @@
extern sfx_pcm_mixer_t *mixer; /* _THE_ global pcm mixer */
+sfx_pcm_mixer_t* getMixer();
+
#endif /* !defined(_SFX_MIXER_H_) */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list