Skip to content

Commit

Permalink
swedish to english
Browse files Browse the repository at this point in the history
  • Loading branch information
esaruoho authored Dec 13, 2018
1 parent dfc11c5 commit 8d92cd8
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/common/SurgeStorageLoadWavetable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void SurgeStorage::load_wt_wav(string filename, Wavetable* wt)

HMMIO hmmio;

/* Open the file for reading with buffered I/O. Let windows use its default internal buffer */
/* Open the file for reading with buffered I/O. Let Windows use its default internal buffer */
hmmio = mmioOpen((LPSTR)filename.c_str(), NULL, MMIO_READ | MMIO_ALLOCBUF);
if (!hmmio)
{
Expand Down Expand Up @@ -130,7 +130,7 @@ void SurgeStorage::load_wt_wav(string filename, Wavetable* wt)
}

if (mmioRead(hmmio, (HPSTR)loaddata, mmckinfoSubchunk.cksize) !=
(LRESULT)mmckinfoSubchunk.cksize) // ACHTUNG!! här händer något bad!
(LRESULT)mmckinfoSubchunk.cksize) // ACHTUNG!! Something bad happens here! ("här händer något bad!")
{
/* Oops! */
error_msg("file io: error reading the data chunk!");
Expand All @@ -141,7 +141,7 @@ void SurgeStorage::load_wt_wav(string filename, Wavetable* wt)

// this->inst_present = false;
/* does not seem to be in general use
mmioAscend(hmmio, &mmckinfoSubchunk, 0);
mmioSeek(hmmio,startpos,SEEK_SET);
// read instrument chunk
Expand All @@ -152,11 +152,11 @@ void SurgeStorage::load_wt_wav(string filename, Wavetable* wt)
this->inst_present = false;
} else {
this->inst_present = true;
if (mmioRead(hmmio, (HPSTR)&inst_tag, mmckinfoSubchunk.cksize) !=
(LRESULT)mmckinfoSubchunk.cksize)
{
error_msg("file io: error reading the inst chunk!");
mmioClose(hmmio, 0);
return false;
Expand Down Expand Up @@ -199,8 +199,10 @@ void SurgeStorage::load_wt_wav(string filename, Wavetable* wt)
loop_present = true;
mmioRead(hmmio, (HPSTR)&smpl_loop, sizeof(smpl_loop));

// Dandruffs skumme wt-bug verkar vara här?
// Dandruffs skumme wt-bug verkar vara här?
// TRANSLATE: Dandruff's skim wt bug seems to be here?
// hoppar in i malloc i callstack? wtf!?
// TRANSLATE: jumping into malloc in call stack? wtf!?

smpl_loop.dwEnd++; // SC wants the loop end point to be the first sample AFTER the loop
}
Expand Down Expand Up @@ -294,4 +296,4 @@ void SurgeStorage::load_wt_wav(string filename, Wavetable* wt)

return;
}
#endif
#endif

0 comments on commit 8d92cd8

Please sign in to comment.