Click here to Skip to main content
14,331,836 members

CCodecList

Rate this:
2.23 (8 votes)
Please Sign up or sign in to vote.
2.23 (8 votes)
7 Sep 2005
A class that retrieves a list of Codecs found on the local computer using the registry.

What does the code do

CCodecList's class retrieves a list of Codecs found on the local computer using the registry.

How to use it

The Zip file contains a simple demo. Here it is:

#include "stdafx.h"
#include "CodecList.h"

CCodecList codec; // an object of CCodecList class

int main()
{
    system ("color 5F"); // color
    system ("title Codecs list using the registry..."); // a title

    int nb = codec.m_aCodec.GetCount(); // number of Codec(s)

    if(nb > 0) // Show a list only if at least one Codec is found.
    {
        // loop until we find a Codecs and show (it) them.
        for (int i = 0; i < codec.m_aCodec.GetCount(); i++)
        {
            printf("%s\r\n", codec.m_aCodec[i]);
        }

        printf("\r\n\r\n"); 

        // Here we show numbers of Codecs found.
        printf("--> Found %i Codecs installed on local computer.\r\n\r\n", 
                                           codec.m_aCodec.GetCount());
    }

    else // No Codecs found, inform user.
    {
        printf("No Codecs found.\r\n\r\n");
    }
    

    system("pause"); 
    return 0;
}

Restrictions

Tested and works on Windows XP SP1. To know: some Codecs' description aren't retrieved, like in the case for "ffdshow" and "mastroka". To retrieve more information about Codecs, you should use the WMI.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author


Comments and Discussions

 
QuestionAudio codec - G.722 Pin
NikoJarvi24-Oct-12 23:23
memberNikoJarvi24-Oct-12 23:23 
If you wish to use a reliable audio codec that ensures high quality for various VoIP applications then I recommend you to choose G.722. Its official name is Low-complexity coding at 24 and 32 kbps for hands-free operation in systems with low frame loss.
Here is a good description about G.722:

This audio codec is a transform-based compressor that is optimized for speech, music and other types of audio since it is able to provide high quality experience. It operates on 20 ms frames of audio.

Since G.722 is a digital wideband coder algorithm, it has an audio bandwidth of 50 kHz to 7kHz and 16, 24, 32 kbps bit rates. Therefore it becomes very useful for hands-free operations in HD VoIP systems with low frame loss.

Features:
- Full and half duplex modes of operation
- Compliant with G.722.1 specification
- Optimized for high performance on leading edge DSP architectures
- Multichannel implementation
- Multi-tasking environment compatible

More details are available at http://voip-sip-sdk.com/p_215-g722-codec-voip.html.

Bye,
NikoJarvi
GeneralHere is my approach Pin
Justin Hallet8-Sep-05 22:46
memberJustin Hallet8-Sep-05 22:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Article
Posted 7 Sep 2005

Stats

33.9K views
575 downloads
33 bookmarked