Mail Archives: djgpp/1998/11/11/16:30:13
> dosmemput(const void *buffer,int length,int offset)
>
> this transfer dpmi memory (sound samples allocated with malloc) to DOS
> memory (DMA buffer) right??
Yes.
> Ok if I am right about this tranfer, the const void *buffer sould be
> replaced with my pointer to sound data (data allocated with malloc)
Yes.
> But how do I find the offset of the DMA buffer (DOS memory)
>
> I know the formula : offset = segment * 16 + offset;
> Do this code is right?
For dosmemput, yes.
> Because in other codes I see that their using the memcpy function (Watcom
> source code of SoundBlaster's Hardware programming guide). Do I need to use
> memcpy or dosmemput ?
Of those two, dosmemput. Only it knows about the special dos segment.
memcpy can only copy between two application-memory buffers.
- Raw text -