aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2009-01-03 14:05:57 +0000
committerEugene Sandulenko2009-01-03 14:05:57 +0000
commitf0c6bfc392d07c04fc4d310ef4b9b2f569966ed4 (patch)
treea637f9539d7607579e00eb28538621d9d289b3df /engines
parentb2d7ae871bb82da68caa08a9c8695bcacbc67ce8 (diff)
downloadscummvm-rg350-f0c6bfc392d07c04fc4d310ef4b9b2f569966ed4.tar.gz
scummvm-rg350-f0c6bfc392d07c04fc4d310ef4b9b2f569966ed4.tar.bz2
scummvm-rg350-f0c6bfc392d07c04fc4d310ef4b9b2f569966ed4.zip
Formatting
svn-id: r35701
Diffstat (limited to 'engines')
-rw-r--r--engines/agi/sound.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/engines/agi/sound.cpp b/engines/agi/sound.cpp
index ee8a1834ca..5dce7679b4 100644
--- a/engines/agi/sound.cpp
+++ b/engines/agi/sound.cpp
@@ -41,13 +41,17 @@ static bool g_useChorus = true;
*/
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);