Mercurial > audlegacy-plugins
comparison src/modplug/load_ptm.cxx @ 2316:62391135da44
fixed some warnings
author | Cristi Magherusan <majeru@atheme.org> |
---|---|
date | Tue, 15 Jan 2008 12:35:54 +0200 |
parents | 6907fc39b53f |
children | 107c1fed3d92 |
comparison
equal
deleted
inserted
replaced
2315:8f3476f7a696 | 2316:62391135da44 |
---|---|
113 pins->uFlags = 0; | 113 pins->uFlags = 0; |
114 if ((psmp->sampletype & 3) == 1) | 114 if ((psmp->sampletype & 3) == 1) |
115 { | 115 { |
116 UINT smpflg = RS_PCM8D; | 116 UINT smpflg = RS_PCM8D; |
117 DWORD samplepos; | 117 DWORD samplepos; |
118 pins->nLength = bswapLE32(*(LPDWORD)(psmp->length)); | 118 pins->nLength = bswapLE32(*(LPDWORD)(void*)(psmp->length)); |
119 pins->nLoopStart = bswapLE32(*(LPDWORD)(psmp->loopbeg)); | 119 pins->nLoopStart = bswapLE32(*(LPDWORD)(void*)(psmp->loopbeg)); |
120 pins->nLoopEnd = bswapLE32(*(LPDWORD)(psmp->loopend)); | 120 pins->nLoopEnd = bswapLE32(*(LPDWORD)(void*)(psmp->loopend)); |
121 samplepos = bswapLE32(*(LPDWORD)(&psmp->fileofs)); | 121 samplepos = bswapLE32(*(LPDWORD)(void*)(&psmp->fileofs)); |
122 if (psmp->sampletype & 4) pins->uFlags |= CHN_LOOP; | 122 if (psmp->sampletype & 4) pins->uFlags |= CHN_LOOP; |
123 if (psmp->sampletype & 8) pins->uFlags |= CHN_PINGPONGLOOP; | 123 if (psmp->sampletype & 8) pins->uFlags |= CHN_PINGPONGLOOP; |
124 if (psmp->sampletype & 16) | 124 if (psmp->sampletype & 16) |
125 { | 125 { |
126 pins->uFlags |= CHN_16BIT; | 126 pins->uFlags |= CHN_16BIT; |