[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/sound wav.c
From: |
Jimmy Salmon |
Subject: |
[Stratagus-CVS] stratagus/src/sound wav.c |
Date: |
Sat, 11 Oct 2003 15:09:03 -0400 |
CVSROOT: /cvsroot/stratagus
Module name: stratagus
Branch:
Changes by: Jimmy Salmon <address@hidden> 03/10/11 15:09:03
Modified files:
src/sound : wav.c
Log message:
Fixed bug loading wavs that don't have data at the beginning of the file
Patches:
Index: stratagus/src/sound/wav.c
diff -u stratagus/src/sound/wav.c:1.33 stratagus/src/sound/wav.c:1.34
--- stratagus/src/sound/wav.c:1.33 Wed Oct 1 20:11:34 2003
+++ stratagus/src/sound/wav.c Sat Oct 11 15:09:03 2003
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: wav.c,v 1.33 2003/10/02 00:11:34 jsalmon3 Exp $
+// $Id: wav.c,v 1.34 2003/10/11 19:09:03 jsalmon3 Exp $
//@{
@@ -294,11 +294,8 @@
DebugLevel3("Magic: $%x\n" _C_ chunk.Magic);
DebugLevel3("Length: %d\n" _C_ chunk.Length);
if (chunk.Magic != DATA) {
- // FIXME: cleanup the wav files, remove this junk, and don't
support
- // FIXME: this!!
- DebugLevel3("Wrong magic %x (not %x)\n" _C_ chunk.Magic _C_
DATA);
- DebugLevel3("Junk at end of file\n");
- break;
+ CLseek(f, chunk.Length, SEEK_CUR);
+ continue;
}
i = chunk.Length;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Stratagus-CVS] stratagus/src/sound wav.c,
Jimmy Salmon <=