delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/12/03:32:47

Message-ID: <37B1ED4C.25700BCB@geocities.com>
From: Sahab Yazdani <beyonder69 AT geocities DOT com>
X-Mailer: Mozilla 4.51 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Mixing Sound...
Lines: 16
Date: Wed, 11 Aug 1999 17:38:20 -0400
NNTP-Posting-Host: 209.103.49.183
X-Complaints-To: abuse AT sprint DOT ca
X-Trace: newscontent-01.sprint.ca 934407514 209.103.49.183 (Wed, 11 Aug 1999 17:38:34 EDT)
NNTP-Posting-Date: Wed, 11 Aug 1999 17:38:34 EDT
Organization: Sprint Canada Inc.
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Well I finally wrote my SoundCard Handler and its working properly.

Now I have just one problem.

I don't know how to mix two sounds together.
I tried adding them, but the volume just goes through the roof and only
the louder of the too is audiable.

what I'm doing right now...

mixingblock is a short int
and data is an unsigned char

*mixingblock+=*data;

and then _farnspokew-ing them to the actual buffer

- Raw text -


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