Mercurial > audlegacy-plugins
comparison src/modplug/sndfile.cxx @ 963:9549fea94794 trunk
[svn] Warning fixes from SuSe.
author | chainsaw |
---|---|
date | Tue, 17 Apr 2007 14:45:19 -0700 |
parents | 4095ceb0440b |
children | 032053ca08ab c349bd73af71 |
comparison
equal
deleted
inserted
replaced
962:9f0ac3bb82f4 | 963:9549fea94794 |
---|---|
1174 len = pIns->nLength * 2; | 1174 len = pIns->nLength * 2; |
1175 if (len <= dwMemLength) memcpy(pIns->pSample, lpMemFile, len); | 1175 if (len <= dwMemLength) memcpy(pIns->pSample, lpMemFile, len); |
1176 short int *pSample = (short int *)pIns->pSample; | 1176 short int *pSample = (short int *)pIns->pSample; |
1177 for (UINT j=0; j<len; j+=2) | 1177 for (UINT j=0; j<len; j+=2) |
1178 { | 1178 { |
1179 *pSample++ = bswapLE16(*pSample); | 1179 *pSample = bswapLE16(*pSample); |
1180 ++pSample; | |
1180 } | 1181 } |
1181 } | 1182 } |
1182 break; | 1183 break; |
1183 | 1184 |
1184 // 16-bit signed mono PCM motorola byte order | 1185 // 16-bit signed mono PCM motorola byte order |
1365 *pSample++ = delta8; | 1366 *pSample++ = delta8; |
1366 } | 1367 } |
1367 WORD *pSampleW = (WORD *)pIns->pSample; | 1368 WORD *pSampleW = (WORD *)pIns->pSample; |
1368 for (UINT j=0; j<len; j+=2) // swaparoni! | 1369 for (UINT j=0; j<len; j+=2) // swaparoni! |
1369 { | 1370 { |
1370 *pSampleW++ = bswapLE16(*pSampleW); | 1371 *pSampleW = bswapLE16(*pSampleW); |
1372 ++pSampleW; | |
1371 } | 1373 } |
1372 } | 1374 } |
1373 break; | 1375 break; |
1374 | 1376 |
1375 // Huffman MDL compressed samples | 1377 // Huffman MDL compressed samples |