From e783859d5c58546b05649c1eb92c6bdbf66b5bb2 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 4 Mar 2009 07:31:31 +0000 Subject: SCI: Replaced sfx_iterator_make_feed and associated code by Audio::makeLinearInputStream svn-id: r39115 --- engines/sci/engine/scriptdebug.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'engines/sci/engine/scriptdebug.cpp') diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp index 71ed439c07..965712ab68 100644 --- a/engines/sci/engine/scriptdebug.cpp +++ b/engines/sci/engine/scriptdebug.cpp @@ -41,6 +41,8 @@ #include "common/util.h" #include "common/savefile.h" +#include "sound/audiostream.h" + namespace Sci { extern int debug_sleeptime_factor; @@ -2411,7 +2413,7 @@ int c_simkey(EngineState *s) { static int c_is_sample(EngineState *s) { Resource *song = s->resmgr->findResource(kResourceTypeSound, cmd_params[0].val, 0); song_iterator_t *songit; - sfx_pcm_feed_t *data; + Audio::AudioStream *data; if (!song) { sciprintf("Not a sound resource.\n"); @@ -2426,9 +2428,11 @@ static int c_is_sample(EngineState *s) { } if ((data = songit->get_pcm_feed(songit))) { +/* sciprintf("\nIs sample (encoding %dHz/%s/%04x).\n", data->conf.rate, (data->conf.stereo) ? ((data->conf.stereo == SFX_PCM_STEREO_LR) ? "stereo-LR" : "stereo-RL") : "mono", data->conf.format); - data->destroy(data); +*/ + delete data; } else sciprintf("Valid song, but not a sample.\n"); -- cgit v1.2.3