aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx/player
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2009-02-21 14:11:41 +0000
committerWillem Jan Palenstijn2009-02-21 14:11:41 +0000
commit34f90ac043230f049c58aaaf843ac347e0fc5c21 (patch)
tree36bc91c0e2ff560438f1c8e2f3e7565f82883e79 /engines/sci/sfx/player
parent7ce7993c30225f3c28ce2a8d68935ef03a6e7175 (diff)
downloadscummvm-rg350-34f90ac043230f049c58aaaf843ac347e0fc5c21.tar.gz
scummvm-rg350-34f90ac043230f049c58aaaf843ac347e0fc5c21.tar.bz2
scummvm-rg350-34f90ac043230f049c58aaaf843ac347e0fc5c21.zip
revert large parts of r38621. error() is for fatal errors and does not return. warning() is not for debugging status messages.
svn-id: r38696
Diffstat (limited to 'engines/sci/sfx/player')
-rw-r--r--engines/sci/sfx/player/polled.cpp3
-rw-r--r--engines/sci/sfx/player/realtime.cpp11
2 files changed, 6 insertions, 8 deletions
diff --git a/engines/sci/sfx/player/polled.cpp b/engines/sci/sfx/player/polled.cpp
index c514fa1caf..5856351bc8 100644
--- a/engines/sci/sfx/player/polled.cpp
+++ b/engines/sci/sfx/player/polled.cpp
@@ -25,9 +25,8 @@
/* Polled player, mostly for PCM-based thingies (which _can_ poll, after all) */
-#include "common/file.h"
#include "common/util.h"
-
+#include "common/file.h"
#include "sci/include/sfx_player.h"
#include "sci/sfx/softseq.h"
#include "sci/sfx/mixer.h"
diff --git a/engines/sci/sfx/player/realtime.cpp b/engines/sci/sfx/player/realtime.cpp
index 6aa53d60d3..e749f49220 100644
--- a/engines/sci/sfx/player/realtime.cpp
+++ b/engines/sci/sfx/player/realtime.cpp
@@ -27,7 +27,6 @@
** prays for some reasonable amount of soft real-time, but it's close
** enough, I guess. */
-#include "common/util.h"
#include "sci/include/sfx_player.h"
#include "sci/sfx/sequencer.h"
@@ -161,7 +160,7 @@ find_patch(ResourceManager *resmgr, const char *seq_name, int patchfile) {
if (patchfile != SFX_SEQ_PATCHFILE_NONE) {
res = scir_find_resource(resmgr, sci_patch, patchfile, 0);
if (!res) {
- error("[SFX] " __FILE__": patch.%03d requested by sequencer (%s), but not found\n",
+ fprintf(stderr, "[SFX] " __FILE__": patch.%03d requested by sequencer (%s), but not found\n",
patchfile, seq_name);
}
}
@@ -185,7 +184,7 @@ rt_init(ResourceManager *resmgr, int expected_latency) {
seq = sfx_find_sequencer(NULL);
if (!seq) {
- error("[SFX] " __FILE__": Could not find sequencer\n");
+ fprintf(stderr, "[SFX] " __FILE__": Could not find sequencer\n");
return SFX_ERROR;
}
@@ -202,7 +201,7 @@ rt_init(ResourceManager *resmgr, int expected_latency) {
res2 ? res2->size : 0,
res2 ? res2->data : NULL,
seq_dev)) {
- error("[SFX] " __FILE__": Sequencer failed to initialize\n");
+ fprintf(stderr, "[SFX] " __FILE__": Sequencer failed to initialize\n");
return SFX_ERROR;
}
@@ -236,7 +235,7 @@ rt_add_iterator(song_iterator_t *it, GTimeVal start_time) {
static int
rt_fade_out(void) {
- error(__FILE__": Attempt to fade out- not implemented yet\n");
+ fprintf(stderr, __FILE__": Attempt to fade out- not implemented yet\n");
return SFX_ERROR;
}
@@ -289,7 +288,7 @@ rt_exit(void) {
int retval = SFX_OK;
if (seq->close()) {
- error("[SFX] Sequencer reported error on close\n");
+ fprintf(stderr, "[SFX] Sequencer reported error on close\n");
retval = SFX_ERROR;
}