🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Compressing audio - formats supported by XP

#425
From: Chris Croughton
Date: Mon, 02 Aug 2004 09:10
52 lines
3367 bytes
On Thu, 29 Jul 2004 12:00:07 +0100, Mark Jacobs 
   <> wrote:

> I do beg your pardon, Chris. I must apologise, and with a double-yoker on my
> face (egg - a big one!), let me just say that because of the testbed program
> mathspenknife had become, a load of chaff libraries had got linked in, and
> never thrown out again after they were no longer needed. One of these was
> ACE32BOR.LIB (there were a couple of others including Direct Sound!!!) so I
> have removed them, rebuilt from scratch (proper rebuild) and the .EXE has gone
> from 1.2 MBytes to 880 KBytes in size.

No problem, I guess we've all done something like that sometime.

> The documentation for ACM is all in the Windows SDK documentation that comes
> with BCB. On the Help menu in the IDE is the option "Windows SDK". Use it to
> look up these functions :-
> 
>  acmDriverEnum
>  acmFormatTagDetails
>  acmFormatDetails

Aha!  I always forget that one is there.

> Here is a big hint. Use the "Index" method to elicit details from the ACM,
> rather than enumeration - except for the acmDriverEnum part which has to be
> done using CALLBACKs. Everything from there onwards can use a for loop
> accessing successive indexes for the codecs and types discovered.

OK...

Unfortunately, the drivers for the Audigy2Pro soundcard seem not to
advertise their 24 bit formats through the ACM, which is what I
particularly wanted -- they provide a WDM module, which is the only way of
getting 24 bit at 44100 sps, the DirectSound and ASIO drivers will only
do 24 bits at 48 or 96 ksps and I do /not/ want to do resampling (nasty
nasty artefacts going from 48 to 44.1, and 96 makes files which are far
too big), and some commercial recorders will handle the WDM input
(nTrack and CoolEdit at least) at 24/44.1 so it obviously can be done,
but I can't work out what the WAVEFORMATEX should look like to do it.

I'll post separately about that, see if anyone has any other ideas (I
tried in the comp.os.ms-windows.programmer.multimedia newsgroup and have
seen nothing at all posted there since, I think it's a dead group).

> The new version (not dependent on ACE or DSOUND) of mathspenknife.exe has been
> uploaded. Sorry about the hassle and thanks for pointing this out to me. Good
> luck. Thanks again.

Keine probleme.  That's a useful utility (I used it to look at fonts as
well)...

Chris C
Technical Details
Message-ID: <slrncgs17a.j46.chris@ccserver.keris.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail
References: <40fe9d52$1@newsgroups.borland.com> <41030db0$1@newsgroups.borland.com> <slrncgcg7t.ma.chris@ccserver.keris.net> <41066b52$1@newsgroups.borland.com> <slrncgdb7k.b4f.chris@ccserver.keris.net> <41078213@newsgroups.borland.com> <slrncgfodl.orr.chris@ccserver.keris.net> <4108d8b7$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,3ab497c67f89962f
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: Compressing audio - formats supported by XP
Date: Mon, 2 Aug 2004 10:10:02 +0100
Lines: 52
Message-ID: <slrncgs17a.j46.chris@ccserver.keris.net>
References: <40fe9d52$1@newsgroups.borland.com> <41030db0$1@newsgroups.borland.com> <slrncgcg7t.ma.chris@ccserver.keris.net> <41066b52$1@newsgroups.borland.com> <slrncgdb7k.b4f.chris@ccserver.keris.net> <41078213@newsgroups.borland.com> <slrncgfodl.orr.chris@ccserver.keris.net> <4108d8b7$1@newsgroups.borland.com>
Reply-To: chris@keristor.net
X-Trace: news.uni-berlin.de wbIa078r7HbbMx5uNeTyNwmZT1eI6ZlBfu1qvukIHKao0CfHQ=
X-Orig-Path: ccserver.keris.net!news
User-Agent: slrn/0.9.7.4 (Linux)