/[svn]/linuxsampler/tags/v0_1_0/src/RIFF.cpp
ViewVC logotype

Diff of /linuxsampler/tags/v0_1_0/src/RIFF.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 12 by schoenebeck, Sun Nov 16 19:01:50 2003 UTC revision 25 by schoenebeck, Fri Dec 26 16:18:54 2003 UTC
# Line 192  namespace RIFF { Line 192  namespace RIFF {
192         #if DEBUG         #if DEBUG
193         std::cout << "Chunk::Read(void*,ulong,ulong)" << std::endl;         std::cout << "Chunk::Read(void*,ulong,ulong)" << std::endl;
194         #endif // DEBUG         #endif // DEBUG
195          if (ChunkSize - ulPos <= 0) return 0;          if (ulPos >= ChunkSize) return 0;
196          if (ulPos + WordCount * WordSize >= ChunkSize) WordCount = (ChunkSize - ulPos) / WordSize;          if (ulPos + WordCount * WordSize >= ChunkSize) WordCount = (ChunkSize - ulPos) / WordSize;
197          #if POSIX          #if POSIX
198          if (lseek(hFile, ulStartPos + ulPos, SEEK_SET) < 0) return 0;          if (lseek(hFile, ulStartPos + ulPos, SEEK_SET) < 0) return 0;

Legend:
Removed from v.12  
changed lines
  Added in v.25

  ViewVC Help
Powered by ViewVC