🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #862

Re: BCB3 Mixing sound streams together before sending to sound card

#862
From: Maynard Philbrook
Date: Mon, 03 Mar 2003 07:06
24 lines
2171 bytes
all audio grams have to be in PCM format. (Pulse Coded Modulation).
this is the bases for uncompressed Wave data.
 simply ADD destination and source and average the PCM bits.
( DestinationPCMBit+=SourcePCMBit) >> 1;
use the WaveOutOpen, WaveReset,WaveOut etc. functions.



feklar wrote:

> How is this done?
>
> Say I have 200 different WAV sounds of frogs, crickets, and other
> swamp or jungle critters, and I want to simulate a swamp by choosing
> these sounds randomly and mixing them all together into a single
> output stream and then sending the stream to the sound card.
>
> Say at any given random second I might want to be sending 10 different
> cricket sounds at 10 different volumes and three different frog
> sounds.
>
> What are the considerations, anyone ever done this before?  I have
> some experience with BCB3 but I have never tried anything multimedia
> before.
Technical Details
Message-ID: <3E62FEDF.D7CD4C39@mindspring.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!nntp1.roc.gblx.net!nntp.gblx.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!newsfeed.news2me.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail
References: <3e62fa2d.129022297@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d0fc,cc0e39d22fa8fc93
X-Google-Attributes: gid10d0fc,public
X-Google-ArrivalTime: 2003-03-02 23:08:24 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!nntp1.roc.gblx.net!nntp.gblx.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!newsfeed.news2me.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail
From: Maynard Philbrook <jamie12mindspring.com@mindspring.com>
Newsgroups: borland.public.cppbuilder.multimedia
Subject: Re: BCB3 Mixing sound streams together before sending to sound card
Date: Mon, 03 Mar 2003 02:06:07 -0500
Organization: MindSpring Enterprises
Lines: 25
Message-ID: <3E62FEDF.D7CD4C39@mindspring.com>
References: <3e62fa2d.129022297@newsgroups.borland.com>
Reply-To: jamie12mindspring.com@mindspring.com
NNTP-Posting-Host: 44.76.b2.0c
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Server-Date: 3 Mar 2003 07:08:20 GMT
X-Mailer: Mozilla 4.5 [en]C-CCK-MCD {TLC;RETAIL}  (Win98; U)
X-Accept-Language: en