X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: pyzals AT gmail DOT com Newsgroups: comp.os.msdos.djgpp Subject: DMA and Soundblaster with DJGPP Date: 14 May 2007 20:09:03 -0700 Organization: http://groups.google.com Lines: 13 Message-ID: <1179198543.710532.156270@w5g2000hsg.googlegroups.com> NNTP-Posting-Host: 207.172.212.150 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1179198550 31843 127.0.0.1 (15 May 2007 03:09:10 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Tue, 15 May 2007 03:09:10 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse AT google DOT com Injection-Info: w5g2000hsg.googlegroups.com; posting-host=207.172.212.150; posting-account=05gL3A0AAACG41nL0SPMErl_sLw6jMYA To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello All, I am working on adding sound to a few roguelike games. Basically I am trying to write some code that plays a .wav file on a soundblaster 2.0 (actually NTVDM.exe emulated soundblaster) using DMA. The code I have compiles perfectly, but the wav file doesn't play correctly. This exact same code works perfectly when compiled using an Borland Turbo C+ + 3.1 (which I dug up just to see if this was the case). Could this be a bug in DJGPP? Do I need to be instructing gcc to compile things a little differently? I am at a loss as to what to do next. The code is almost exactly what is here: http://www.cprogramming.com/source/waveplay.cpp