Mercurial > audlegacy-plugins
comparison src/modplug/load_okt.cxx @ 2337:107c1fed3d92
Port Schism modplug core.
author | "Tony Vroon <chainsaw@gentoo.org>" |
---|---|
date | Thu, 24 Jan 2008 12:05:59 +0000 |
parents | 6907fc39b53f |
children |
comparison
equal
deleted
inserted
replaced
2336:ad45d65e9ae7 | 2337:107c1fed3d92 |
---|---|
118 if (npat < MAX_PATTERNS) | 118 if (npat < MAX_PATTERNS) |
119 { | 119 { |
120 if ((Patterns[npat] = AllocatePattern(rows, m_nChannels)) == NULL) return TRUE; | 120 if ((Patterns[npat] = AllocatePattern(rows, m_nChannels)) == NULL) return TRUE; |
121 MODCOMMAND *m = Patterns[npat]; | 121 MODCOMMAND *m = Patterns[npat]; |
122 PatternSize[npat] = rows; | 122 PatternSize[npat] = rows; |
123 PatternAllocSize[npat] = rows; | |
123 UINT imax = m_nChannels*rows; | 124 UINT imax = m_nChannels*rows; |
124 for (UINT i=0; i<imax; i++, m++, dwPos+=4) | 125 for (UINT i=0; i<imax; i++, m++, dwPos+=4) |
125 { | 126 { |
126 if (dwPos+4 > dwMemLength) break; | 127 if (dwPos+4 > dwMemLength) break; |
127 const BYTE *p = lpStream+dwPos; | 128 const BYTE *p = lpStream+dwPos; |