Article View: borland.public.cppbuilder.multimedia
Article #640Re: Separating stereo channels
From: Chri
Date: Mon, 17 May 2004 13:13
Date: Mon, 17 May 2004 13:13
21 lines
1713 bytes
1713 bytes
"Denville Longhurst" <Denville@metco.co.uk> ha scritto nel messaggio news:400aca96@newsgroups.borland.com... > Is it possible to treat the two (stereo) channels of a Sound Card separately > (I am using them as two completely separate, unrelated, mono outputs), or do > I have to merge the separate data into a 'stereo' buffer and output it that > way (which I can do, but it gets a bit messy) ?? > > Many thanks, > Denville. > > Yes you can treat the input stereo source like two mono channels. When you open the device with API's functions, you have to open it in stereo mode. The buffer you have recorded is stereo so you have samples consecutive: sampl1Left, sample1Right, sample2Left, sample2Right, ..... All you have to do is to extract the right sequence for the two channels!!! Bye. Chri.
Technical Details
Message-ID:
<40a8ba73@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<400aca96@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d0fc,a528224edd4dccca X-Google-Attributes: gid10d0fc,public Reply-To: "Chri" <chrip@libero.it> From: "Chri" <chrip@libero.it> Newsgroups: borland.public.cppbuilder.multimedia References: <400aca96@newsgroups.borland.com> Subject: Re: Separating stereo channels Date: Mon, 17 May 2004 15:13:56 +0200 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 82.48.253.116 Message-ID: <40a8ba73@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1084799603 82.48.253.116 (17 May 2004 06:13:23 -0700) Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail