🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.multimedia
2 messages
2 total messages Started by Denville Longhurst Sun, 18 Jan 2004 18:04
Separating stereo channels
#539
Author: Denville Longhurst
Date: Sun, 18 Jan 2004 18:04
7 lines
1233 bytes
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.
Re: Separating stereo channels
#640
Author: Chri
Date: Mon, 17 May 2004 13:13
21 lines
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads