bugfix for SIMPLE_WRITE_SOUND
[picodrive.git] / platform / win32 / GenaDrive / DSound.cpp
index 05e7f02..3a38a8d 100644 (file)
@@ -89,10 +89,9 @@ static int WriteSeg()
   // Lock the segment at 'LoopWrite' and copy the next segment in\r
   LoopBuffer->Lock(LoopWrite<<((PicoOpt&8) ? 2 : 1),PsndLen<<((PicoOpt&8) ? 2 : 1), &mema,&sizea, &memb,&sizeb, 0);\r
   \r
-  //dprintf2("lock %p, cpy %x\n", mema, sizea);\r
-\r
   if (mema) memcpy(mema,DSoundNext,sizea);\r
 //  if (memb) memcpy(memb,DSoundNext+sizea,sizeb);\r
+  if (sizeb != 0) dprintf2("sizeb is not 0! (%i)\n", sizeb);\r
 \r
   LoopBuffer->Unlock(mema,sizea, memb,0);\r
 \r
@@ -109,8 +108,6 @@ int DSoundUpdate()
   LoopBuffer->GetCurrentPosition(&play,NULL);\r
   pos=play>>((PicoOpt&8) ? 2 : 1);\r
 \r
-  //dprintf2("loop %i pos %i\n", LoopWrite, pos);\r
-\r
   // 'LoopWrite' is the next seg in the loop that we want to write\r
   // First check that the sound 'play' pointer has moved out of it:\r
   if (pos>=LoopWrite && pos<LoopWrite+PsndLen) return 1; // No, it hasn't\r