dmusic: framework for file loading

Andreas Mohr andi at
Sun Jun 22 10:25:28 CDT 2003

On Sun, Jun 22, 2003 at 03:12:43PM +0200, Rok Mandeljc wrote:
> 	As I've mentioned, we'll need a function for loading chunks from dmusic
> files. I tried to write one, and here's result; it's not very nice, but
> it works (sort of). 
> 	At the time being, it only "loads" and displays data
> (--debugmsg=+dmfile for debug and --debugmsg=+dmfiledat for the display
> of data). I couldn't make it load data into IDirectMusic*Impl
> interfaces, because whatever I did, exception occured (maybe someone
> more familiar with this could do this (Raphael?)). Also, if someone has
> more robust and simpler function, please tell me.
> 	DMUSIC_FillSegmentFromFileHandle loads sample.sgt from DX SDK
> completely... however, i didn't try the other.
> 	Also "fixed" a problem I've encountered while running 3DAudio.exe (from
> SDK). One of the latest patches added this clause: 
> if (!ppDirectSound)
> 	IDirectSound_Release(*ppDirectSound);
> I don't know why, but it causes exception (i've commented it).
Would you PLEASE remove the ! instead of commenting the whole stupid thing!?
Aargh, too easy... ;)

Andreas Mohr

More information about the wine-devel mailing list