Frank Zago пре 16 година
родитељ
комит
a5f7c913ee
2 измењених фајлова са 5 додато и 7 уклоњено
  1. 0 4
      hch/CSndHandler.cpp
  2. 5 3
      hch/CSndHandler.h

+ 0 - 4
hch/CSndHandler.cpp

@@ -22,10 +22,6 @@ CMediaHandler::~CMediaHandler()
 	delete mfile;
 }
 
-// Analyze the sound file. Half of this could go away if we were using
-// a simple structure. However, some post treatment would be necessary: file
-// size and offsets are little endian, and filename have a NUL in
-// them. */
 CMediaHandler::CMediaHandler(std::string fname)
 {
 	try //c-tor of mapped_file_source throws exception on failure

+ 5 - 3
hch/CSndHandler.h

@@ -31,17 +31,19 @@ struct MemberFile
 	int length;
 };
 
+// sound entry structure in catalog
 struct soundEntry
 {
 	char filename[40];
-	Uint32 offset;				/* lettle endian */
-	Uint32 size;				/* lettle endian */
+	Uint32 offset;				/* little endian */
+	Uint32 size;				/* little endian */
 };
 
+// video entry structure in catalog
 struct videoEntry
 {
 	char filename[40];
-	Uint32 offset;				/* lettle endian */
+	Uint32 offset;				/* little endian */
 };
 
 class CMediaHandler