Link to home
Start Free TrialLog in
Avatar of LiveBootleg
LiveBootlegFlag for South Africa

asked on

List of installed audio codecs

Hi,

I am deploying an application that includes video content which is compressed using Windows Video and Audio Codecs. I want to include the codec installation packages with the software.

During installation, I want to check whether the necessary codecs are installed on the host machine, and if not, run the codec installation.

I have managed to do this for the video codecs using some code I got here at experts-exchange using VFW (Video for Windows). It builds a list of installed video codecs and I just step through them and check whether the particular codec is installed or not.

Now I need to do the same for audio, but I can't find anything that will do the same as above...
Avatar of Newt6398
Newt6398

Check the systems registry (Regedit). I presume you only have X number of codecs and they must
be registered so check if there key exists or not.

Not sure about this but another maybe to check the file NSPlayer.inf.

I know the system information utility displays codec drivers this has to be stored somewhere.
You will have to get a component from torry:
http://www.torry.net/vcl/mmedia/video/vfw.zip

// And the code for your list is....

procedure TForm1.Button1Click(Sender: TObject);
var
 Count: Integer;
 Info: TICInfo;
 ic: HIC;
begin
ListBox1.Items.Clear;
Count:=0;
repeat
if not ICInfo(0,Count,@Info) then
Break;
ic:=ICOpen(Info.fccType,Info.fccHandler,ICMODE_QUERY);
ICGetInfo(ic,@Info,SizeOf(TICInfo));
ICClose(ic);
ListBox1.Items.Add(Info.szDescription);
Inc(Count);
until
 false;
end;





And your answer Your answer is right here:
https://www.experts-exchange.com/questions/20303992/Video-Code-installed.html?query=list+video+codecs&topics=85
Avatar of LiveBootleg

ASKER

Yes indeed. This does list the installed VIDEO codecs. What I need is something that lists the installed AUDIO codecs for me.

Currently I am looking at an example I got from http://www.undu.com/Articles/010323c.html. This uses Windows ACM, but unfortunately the example does not compile, becuae I have a different version of MSAcm.pas.
ASKER CERTIFIED SOLUTION
Avatar of sdmason
sdmason
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanx sdmason.

I had no problem stopping the app while running from the IDE. Couldn't get the file NTDLLDebugNoOp.pas  from the site as well.
Sorry about the bum link.  If you go to http://www.fulltextsearch.com and search for PatchINT3 in the borland groups you should be able to find it.  I think the problem depends on the codecs you have loaded . . .