LiveBootleg
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...
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...
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,In fo.fccHand ler,ICMODE _QUERY);
ICGetInfo(ic,@Info,SizeOf( TICInfo));
ICClose(ic);
ListBox1.Items.Add(Info.sz Descriptio n);
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
http://www.torry.net/vcl/mmedia/video/vfw.zip
// And the code for your list is....
procedure TForm1.Button1Click(Sender
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,In
ICGetInfo(ic,@Info,SizeOf(
ICClose(ic);
ListBox1.Items.Add(Info.sz
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
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
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 . . .
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.