From: "Michael Stewart" Newsgroups: comp.os.msdos.djgpp Subject: Re: Mixing Sound... Date: Fri, 13 Aug 1999 11:11:19 +0100 Organization: (Posted via) Netcom Internet Ltd. Lines: 22 Message-ID: <7p0r0i$5mt$1@taliesin.netcom.net.uk> References: <37B1ED4C DOT 25700BCB AT geocities DOT com> NNTP-Posting-Host: hgty.capgemini.co.uk X-Trace: taliesin.netcom.net.uk 934539090 5853 194.42.240.2 (13 Aug 1999 10:11:30 GMT) X-Complaints-To: abuse AT corp DOT netcom DOT net DOT uk NNTP-Posting-Date: 13 Aug 1999 10:11:30 GMT X-Newsreader: Microsoft Outlook Express 4.72.3155.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Sahab Yazdani wrote in message <37B1ED4C DOT 25700BCB AT geocities 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 I've never done sound before but would it not be better to average the values rather than add them ?