From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro - record WAV Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <39E727D9 DOT 95A74284 AT inbox DOT ru> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 21 X-Trace: /KiKeWbk9+GXFii3bMMJSlocfUTkcsry6489s6f4bVbHrw9UaWYc7iBp682SqLr6JGi5sSNii9fG!5TfFXtMR3HwsFYpUYsj07HpsFuJqUa8Aa7fOseOSeFn+tFP9DrmosJa6rnZ73b2/d+Pw9qGt38dM!Hiav X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Sat, 14 Oct 2000 05:05:35 GMT Distribution: world Date: Sat, 14 Oct 2000 05:05:35 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Fri, 13 Oct 2000 18:18:49 +0300, Snaga wrote: >I write some kind of tracker and i need to write Allegro sound output >into WAV file (i play sounds via play_sample() and adjust_sample() ). You could try writing a "redirect to wave" digi driver for Allegro. There's already some mixer code, and it (by default) dumps to the sound card; you could probably easily rewrite it to dump to a memory buffer. However, you won't be able to write to disk from the digi driver (it runs in a hardware interrupt service thread, where DOS is unavailable); you'll need another function to flush the buffer. Patches Are Welcome(TM). --