comparison Plugins/Input/adplug/core/database.cpp @ 637:2b06eb5e472d trunk

[svn] Sync with upstream. Drop hardware OPL2/3 support, it throws warnings and is not used on most modern machines. Added var inits where GCC 4.0 thought it was a good idea.
author chainsaw
date Sat, 18 Feb 2006 08:23:30 -0800
parents 7f0e78f42032
children f12d7e208b43
comparison
equal deleted inserted replaced
636:aa6914ee37ab 637:2b06eb5e472d
1 /* 1 /*
2 * AdPlug - Replayer for many OPL2/OPL3 audio file formats. 2 * AdPlug - Replayer for many OPL2/OPL3 audio file formats.
3 * Copyright (c) 1999 - 2003 Simon Peter <dn.tlp@gmx.net>, et al. 3 * Copyright (c) 1999 - 2006 Simon Peter <dn.tlp@gmx.net>, et al.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public 6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version. 8 * version 2.1 of the License, or (at your option) any later version.
16 * License along with this library; if not, write to the Free Software 16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 * 18 *
19 * database.cpp - AdPlug database class 19 * database.cpp - AdPlug database class
20 * Copyright (c) 2002 Riven the Mage <riven@ok.ru> 20 * Copyright (c) 2002 Riven the Mage <riven@ok.ru>
21 * Copyright (c) 2002, 2003 Simon Peter <dn.tlp@gmx.net> 21 * Copyright (c) 2002, 2003, 2006 Simon Peter <dn.tlp@gmx.net>
22 */ 22 */
23 23
24 #include <binio.h> 24 #include <binio.h>
25 #include <binfile.h> 25 #include <binfile.h>
26 #include <string.h> 26 #include <string.h>
92 } 92 }
93 93
94 bool CAdPlugDatabase::save(binostream &f) 94 bool CAdPlugDatabase::save(binostream &f)
95 { 95 {
96 unsigned long i; 96 unsigned long i;
97
98 // Save database as little endian with IEEE floats
99 f.setFlag(binio::BigEndian, false); f.setFlag(binio::FloatIEEE);
97 100
98 f.writeString(DB_FILEID_V10); 101 f.writeString(DB_FILEID_V10);
99 f.writeInt(linear_logic_length, 4); 102 f.writeInt(linear_logic_length, 4);
100 103
101 // write records 104 // write records