Browse Source

Changed some comments.

Frank Zago 16 years ago
parent
commit
a5f7c913ee
2 changed files with 5 additions and 7 deletions
  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;
 	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)
 CMediaHandler::CMediaHandler(std::string fname)
 {
 {
 	try //c-tor of mapped_file_source throws exception on failure
 	try //c-tor of mapped_file_source throws exception on failure

+ 5 - 3
hch/CSndHandler.h

@@ -31,17 +31,19 @@ struct MemberFile
 	int length;
 	int length;
 };
 };
 
 
+// sound entry structure in catalog
 struct soundEntry
 struct soundEntry
 {
 {
 	char filename[40];
 	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
 struct videoEntry
 {
 {
 	char filename[40];
 	char filename[40];
-	Uint32 offset;				/* lettle endian */
+	Uint32 offset;				/* little endian */
 };
 };
 
 
 class CMediaHandler
 class CMediaHandler