[Scummvm-cvs-logs] SF.net SVN: scummvm:[47399] scummvm/trunk/engines/parallaction/sound_br.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Wed Jan 20 00:52:56 CET 2010


Revision: 47399
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47399&view=rev
Author:   fingolfin
Date:     2010-01-19 23:52:49 +0000 (Tue, 19 Jan 2010)

Log Message:
-----------
cleanup

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/sound_br.cpp

Modified: scummvm/trunk/engines/parallaction/sound_br.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/sound_br.cpp	2010-01-19 23:51:38 UTC (rev 47398)
+++ scummvm/trunk/engines/parallaction/sound_br.cpp	2010-01-19 23:52:49 UTC (rev 47399)
@@ -406,7 +406,7 @@
 	Common::SeekableReadStream *stream = _vm->_disk->loadSound(filename);
 
 	uint32 dataSize = stream->size();
-	int8 *data = (int8*)malloc(dataSize);
+	byte *data = (byte *)malloc(dataSize);
 	if (stream->read(data, dataSize) != dataSize)
 		error("DosSoundMan_br::loadChannelData: Read failed");
 
@@ -423,7 +423,7 @@
 		flags |= Audio::FLAG_LOOP;
 	}
 
-	ch->stream = Audio::makeRawMemoryStream((byte *)data, dataSize, DisposeAfterUse::YES, rate, flags, loopStart, loopEnd);
+	ch->stream = Audio::makeRawMemoryStream(data, dataSize, DisposeAfterUse::YES, rate, flags, loopStart, loopEnd);
 	return ch->stream;
 }
 


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