[Scummvm-cvs-logs] SF.net SVN: scummvm:[35701] scummvm/trunk/engines/agi/sound.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Sat Jan 3 15:05:57 CET 2009
Revision: 35701
http://scummvm.svn.sourceforge.net/scummvm/?rev=35701&view=rev
Author: sev
Date: 2009-01-03 14:05:57 +0000 (Sat, 03 Jan 2009)
Log Message:
-----------
Formatting
Modified Paths:
--------------
scummvm/trunk/engines/agi/sound.cpp
Modified: scummvm/trunk/engines/agi/sound.cpp
===================================================================
--- scummvm/trunk/engines/agi/sound.cpp 2009-01-03 14:03:12 UTC (rev 35700)
+++ scummvm/trunk/engines/agi/sound.cpp 2009-01-03 14:05:57 UTC (rev 35701)
@@ -41,13 +41,17 @@
*/
AgiSound *AgiSound::createFromRawResource(uint8 *data, uint32 len, int resnum, SoundMgr &manager) {
- if (data == NULL || len < 2) return NULL; // Check for too small resource or no resource at all
+ if (data == NULL || len < 2) // Check for too small resource or no resource at all
+ return NULL;
uint16 type = READ_LE_UINT16(data);
switch (type) { // Create a sound object based on the type
- case AGI_SOUND_SAMPLE : return new IIgsSample(data, len, resnum, manager);
- case AGI_SOUND_MIDI : return new IIgsMidi (data, len, resnum, manager);
- case AGI_SOUND_4CHN : return new PCjrSound (data, len, resnum, manager);
+ case AGI_SOUND_SAMPLE:
+ return new IIgsSample(data, len, resnum, manager);
+ case AGI_SOUND_MIDI:
+ return new IIgsMidi (data, len, resnum, manager);
+ case AGI_SOUND_4CHN:
+ return new PCjrSound (data, len, resnum, manager);
}
warning("Sound resource (%d) has unknown type (0x%04x). Not using the sound", resnum, type);
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