/[svn]/libgig/trunk/src/RIFF.cpp
ViewVC logotype

Diff of /libgig/trunk/src/RIFF.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1105 by schoenebeck, Sun Mar 18 19:32:42 2007 UTC revision 1184 by persson, Sun May 13 13:24:22 2007 UTC
# Line 1527  namespace RIFF { Line 1527  namespace RIFF {
1527          return false;          return false;
1528      }      }
1529    
1530        /** @brief Set the byte order to be used when saving.
1531         *
1532         * Set the byte order to be used in the file. A value of
1533         * endian_little will create a RIFF file, endian_big a RIFX file
1534         * and endian_native will create a RIFF file on little-endian
1535         * machines and RIFX on big-endian machines.
1536         *
1537         * @param Endian - endianess to use when file is saved.
1538         */
1539        void File::SetByteOrder(endian_t Endian) {
1540            #if WORDS_BIGENDIAN
1541            bEndianNative = Endian != endian_little;
1542            #else
1543            bEndianNative = Endian != endian_big;
1544            #endif
1545        }
1546    
1547      /** @brief Save changes to same file.      /** @brief Save changes to same file.
1548       *       *
1549       * Make all changes of all chunks persistent by writing them to the       * Make all changes of all chunks persistent by writing them to the

Legend:
Removed from v.1105  
changed lines
  Added in v.1184

  ViewVC Help
Powered by ViewVC