delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/14/01:17:54

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro - record WAV
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <e7qfusgtc61541gusiamldmadvfhpl7aeh@4ax.com>
References: <39E727D9 DOT 95A74284 AT inbox DOT ru>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
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 <snaga AT inbox DOT ru> 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).

-- 
<O
( \   GNOME vs. KDE: the game!
 X    http://pineight.8m.com/nes.htm

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019