Article View: borland.public.cppbuilder.multimedia
Article #436Re: Recording 24-bit audio (additional info)
From: Chris Croughton
Date: Fri, 06 Aug 2004 21:12
Date: Fri, 06 Aug 2004 21:12
31 lines
2098 bytes
2098 bytes
On Fri, 06 Aug 2004 14:38:30 +0100, Mark Jacobs
<mark@jacobsm.com> wrote:
> On Fri, 6 Aug 2004 13:56:49 +0100, Chris Croughton <chris@keristor.net>
> wrote:
>
>> int lv = (int)((unsigned char)glbwvhdr->lpData[0]) - 128;
>> int rv = (int)((unsigned char)glbwvhdr->lpData[1]) - 128;
>
> Durrr, Clyde... Yup, I'm an idiot sometimes.
Aren't we all? My favourite is writing something like:
for (i = 0; i < 10; i++);
printf("%d\n", i);
and wondering why only the value "10" gets printed <g>. (OK, it's
usually a little more complicated than that, but the error is the same
-- using an editor with auto-indentation helps a lot...)
>> I suspect that you're right, and the FORMATEX values I'm using are
>> incorrect and are specifying mono 16 bit input represented as floats or
>> something silly...
>
> I'll cast around and see if I come up with anything about 24-bit and
> 32-bit sound sampling. I'll post back here if I come up with something.
Thanks. BTW, my Win2k machine worked again this evening. Definitely a
hardware fault...
Chris C
Technical Details
Message-ID:
<slrnch7t24.it8.chris@ccserver.keris.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mailReferences:
<slrncgs56p.j46.chris@ccserver.keris.net> <410f6b8a@newsgroups.borland.com> <slrncgvo3t.5n3.chris@ccserver.keris.net> <4110bf9b@newsgroups.borland.com> <41113590$1@newsgroups.borland.com> <slrnch2mml.ofk.chris@ccserver.keris.net> <opsb9as3elbvaws7@dk-tzx09ucg42z4.s1.sol1.co.uk> <slrnch700h.6t9.chris@ccserver.keris.net> <opscbb6go4kpth9y@athlete>Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,56d63b5f0bddbea3 X-Google-Attributes: gid10d0fc,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Croughton <chris@keristor.net> Newsgroups: borland.public.cppbuilder.multimedia Subject: Re: Recording 24-bit audio (additional info) Date: Fri, 6 Aug 2004 22:12:36 +0100 Lines: 31 Message-ID: <slrnch7t24.it8.chris@ccserver.keris.net> References: <slrncgs56p.j46.chris@ccserver.keris.net> <410f6b8a@newsgroups.borland.com> <slrncgvo3t.5n3.chris@ccserver.keris.net> <4110bf9b@newsgroups.borland.com> <41113590$1@newsgroups.borland.com> <slrnch2mml.ofk.chris@ccserver.keris.net> <opsb9as3elbvaws7@dk-tzx09ucg42z4.s1.sol1.co.uk> <slrnch700h.6t9.chris@ccserver.keris.net> <opscbb6go4kpth9y@athlete> Reply-To: chris@keristor.net X-Trace: news.uni-berlin.de IV7ibzFlOvBAioORx3LiFw1XvdnzAJmxwvSPw1YeGg0+W1dO8= X-Orig-Path: ccserver.keris.net!news User-Agent: slrn/0.9.7.4 (Linux)