X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fwin32%2FGenaDrive%2FDSound.cpp;fp=platform%2Fwin32%2FGenaDrive%2FDSound.cpp;h=3a38a8d91d4375b013a7c312d5d0ed1bf4770486;hb=e0978fa87d22f168ea9c039c6e2c5bf1274ba9e0;hp=05e7f02a508f011ca8c9ab1370e4b8d13919c465;hpb=03a265e5ebabff7adbb4f97387f81e9b0428dbee;p=picodrive.git diff --git a/platform/win32/GenaDrive/DSound.cpp b/platform/win32/GenaDrive/DSound.cpp index 05e7f02..3a38a8d 100644 --- a/platform/win32/GenaDrive/DSound.cpp +++ b/platform/win32/GenaDrive/DSound.cpp @@ -89,10 +89,9 @@ static int WriteSeg() // Lock the segment at 'LoopWrite' and copy the next segment in LoopBuffer->Lock(LoopWrite<<((PicoOpt&8) ? 2 : 1),PsndLen<<((PicoOpt&8) ? 2 : 1), &mema,&sizea, &memb,&sizeb, 0); - //dprintf2("lock %p, cpy %x\n", mema, sizea); - if (mema) memcpy(mema,DSoundNext,sizea); // if (memb) memcpy(memb,DSoundNext+sizea,sizeb); + if (sizeb != 0) dprintf2("sizeb is not 0! (%i)\n", sizeb); LoopBuffer->Unlock(mema,sizea, memb,0); @@ -109,8 +108,6 @@ int DSoundUpdate() LoopBuffer->GetCurrentPosition(&play,NULL); pos=play>>((PicoOpt&8) ? 2 : 1); - //dprintf2("loop %i pos %i\n", LoopWrite, pos); - // 'LoopWrite' is the next seg in the loop that we want to write // First check that the sound 'play' pointer has moved out of it: if (pos>=LoopWrite && pos