diff options
Diffstat (limited to 'engines/sci/sfx/player/realtime.cpp')
-rw-r--r-- | engines/sci/sfx/player/realtime.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/engines/sci/sfx/player/realtime.cpp b/engines/sci/sfx/player/realtime.cpp index 5821d0b59d..ab3abc1513 100644 --- a/engines/sci/sfx/player/realtime.cpp +++ b/engines/sci/sfx/player/realtime.cpp @@ -27,6 +27,7 @@ ** 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" @@ -158,7 +159,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) { - fprintf(stderr, "[SFX] " __FILE__": patch.%03d requested by sequencer (%s), but not found\n", + error("[SFX] " __FILE__": patch.%03d requested by sequencer (%s), but not found\n", patchfile, seq_name); } } @@ -182,7 +183,7 @@ rt_init(ResourceManager *resmgr, int expected_latency) { seq = sfx_find_sequencer(NULL); if (!seq) { - fprintf(stderr, "[SFX] " __FILE__": Could not find sequencer\n"); + error("[SFX] " __FILE__": Could not find sequencer\n"); return SFX_ERROR; } @@ -199,7 +200,7 @@ rt_init(ResourceManager *resmgr, int expected_latency) { res2 ? res2->size : 0, res2 ? res2->data : NULL, seq_dev)) { - fprintf(stderr, "[SFX] " __FILE__": Sequencer failed to initialize\n"); + error("[SFX] " __FILE__": Sequencer failed to initialize\n"); return SFX_ERROR; } @@ -233,7 +234,7 @@ rt_add_iterator(song_iterator_t *it, GTimeVal start_time) { static int rt_fade_out(void) { - fprintf(stderr, __FILE__": Attempt to fade out- not implemented yet\n"); + error(__FILE__": Attempt to fade out- not implemented yet\n"); return SFX_ERROR; } @@ -286,7 +287,7 @@ rt_exit(void) { int retval = SFX_OK; if (seq->close()) { - fprintf(stderr, "[SFX] Sequencer reported error on close\n"); + error("[SFX] Sequencer reported error on close\n"); retval = SFX_ERROR; } |