comparison src/adplug/core/dro.cxx @ 1191:1cb26b6f7ba0 trunk

Sync with upstream: revision 1.8, Sun Jun 17 20:05:40 2007 UTC
author Tony Vroon <chainsaw@gentoo.org>
date Thu, 21 Jun 2007 11:37:29 +0100
parents 4709ce4e209e
children
comparison
equal deleted inserted replaced
1190:ed2d7787779e 1191:1cb26b6f7ba0
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 - 2005 Simon Peter, <dn.tlp@gmx.net>, et al. 3 * Copyright (C) 1999 - 2007 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.
67 } 67 }
68 68
69 // load section 69 // load section
70 mstotal = f->readInt (4); // Total milliseconds in file 70 mstotal = f->readInt (4); // Total milliseconds in file
71 length = f->readInt (4); // Total data bytes in file 71 length = f->readInt (4); // Total data bytes in file
72 f->ignore (1); // Type of opl data this can contain - ignored 72 f->ignore (4); // Type of opl data this can contain - ignored
73 data = new unsigned char[length]; 73 data = new unsigned char[length];
74 for (i = 0; i < length; i++) 74 for (i = 0; i < length; i++)
75 data[i] = f->readInt (1); 75 data[i] = f->readInt (1);
76 fp.close (f); 76 fp.close (f);
77 rewind (0); 77 rewind (0);