// Make buffer for the next seg to put into the loop:\r
DSoundNext=(short *)malloc((PsndLen<<2)+64); if (DSoundNext==NULL) return 1;\r
memset(DSoundNext,0,PsndLen<<2);\r
-// dprintf2("p %p\n", DSoundNext);\r
+// lprintf("p %p\n", DSoundNext);\r
\r
// Create the DirectSound interface:\r
DirectSoundCreate(NULL,&DSound,NULL);\r
\r
// Lock the segment at 'LoopWrite' and copy the next segment in\r
ret = LoopBuffer->Lock(LoopWrite<<((PicoOpt&8) ? 2 : 1),PsndLen<<((PicoOpt&8) ? 2 : 1), &mema,&sizea, &memb,&sizeb, 0);\r
- if (ret) dprintf2("LoopBuffer->Lock() failed: %i\n", ret);\r
+ if (ret) lprintf("LoopBuffer->Lock() failed: %i\n", ret);\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
+ if (sizeb != 0) lprintf("sizeb is not 0! (%i)\n", sizeb);\r
\r
ret = LoopBuffer->Unlock(mema,sizea, memb,0);\r
- if (ret) dprintf2("LoopBuffer->Unlock() failed: %i\n", ret);\r
+ if (ret) lprintf("LoopBuffer->Unlock() failed: %i\n", ret);\r
\r
return 0;\r
}\r