From 8d92cd8a0b70b995606354d132dde30ab9b42965 Mon Sep 17 00:00:00 2001 From: Esa Juhani Ruoho Date: Thu, 13 Dec 2018 18:43:28 +0200 Subject: [PATCH] swedish to english --- src/common/SurgeStorageLoadWavetable.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/common/SurgeStorageLoadWavetable.cpp b/src/common/SurgeStorageLoadWavetable.cpp index 860c11a7d17..e7cce16f409 100644 --- a/src/common/SurgeStorageLoadWavetable.cpp +++ b/src/common/SurgeStorageLoadWavetable.cpp @@ -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) { @@ -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!"); @@ -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 @@ -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; @@ -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 } @@ -294,4 +296,4 @@ void SurgeStorage::load_wt_wav(string filename, Wavetable* wt) return; } -#endif \ No newline at end of file +#endif