From: jb3207 AT eclipse DOT co DOT uk (Jason Barstow) Newsgroups: comp.os.msdos.djgpp Subject: Re: SBlaster error -O3 Date: Sat, 14 Jun 1997 10:34:46 GMT Organization: Jabber Interactive Reply-To: jb3207 AT eclipse DOT co DOT uk Message-ID: <33a372ec.4549459@dnews.eclipse.co.uk> References: <33A2E721 DOT 6C88 AT pukopn1 DOT puk DOT ac DOT za> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: p07.dione.eclipse.co.uk Lines: 21 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk acebear AT pukopn1 DOT puk DOT ac DOT za wrote: >Has anybody got any ideas how to compile optimized and still get working >sound out of SBLIB? >Rylan I had similar problems with MIKMOD. I narrowed the problem down to DMA code (inports/outports etc). The code was wrapping critical sections in interrupts on/off ASM (CLI,etc). I replaced this with enable() and disable() (these incidently call the DPMI appropriate DPMI equivalents) and it now works. I've since been able to compile the whole caboodle with -O6 -mpentium (I'm using the pentium pgcc snapshot). Oh, and it works with DOS *and* Windows (which is nice). Hope this helps, Jason.