Date: Thu, 13 Mar 1997 18:37:37 +0100 (MET) From: Jan Hubicka To: djgpp AT delorie DOT com Subject: pcspaker driver Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi i wrote pcspeaker driver for my demo(and mikmod of course) it works perfectly for me but has lots of problems at some other computers. I they seems to be cause by other residents(for example at configuration w/o himem.sys everything works ok..) what such handler need to do? (I will sned code soon if needed) I currently do: restoring of cs/ds, getting data from my array+playing, counter for bios->bios call/out 0x20,0x20 and poping ds.. and installing it using __dpmi_set_protected_mode_interrupt_handler(or something like that) I missed something? BTW how exactly out0x20,0x20 work. I know that it needs to be called before next interrupt happends. This should happend before bios handle is done..need I do out before calling bios too? (I tested it/didn't helped much...) btw another problem that happends is that sometimes after changing song it plays garbage for short time but then it works ok.. Honza ------------------------------------------------------------------------------ Have you browsed my www pages? Look at: http://www.paru.cas.cz/~hubicka Koules-the game for Svgalib,X11 and OS/2, Xonix-the game for X11 czech documentation for linux index, original 2D computer art and funny 100 years old photos and articles are there!