Esempio n. 1
0
        private void Config()
        {
            IWMProfileManager profileManager;

            WMUtils.WMCreateProfileManager(out profileManager);

            m_pCodecInfo = (IWMCodecInfo)profileManager;
        }
Esempio n. 2
0
        public WMASettings()
        {
            InitializeComponent();
            //listBoxWMACodecs.Items.AddRange(
            uint profCount;
            IWMProfileManager2 profManager;
            IWMProfile         profile;
            IWMProfile3        profile3;
            IWMStreamConfig    streamConf;

            profManager = (IWMProfileManager2)WM.CreateProfileManager();

            profManager.CreateEmptyProfile(WMT_VERSION.WMT_VER_9_0, out profile);

            Guid            mediaTypeGuid = WmMediaTypeId.Audio;
            IWMCodecInfo    codecInfo     = (IWMCodecInfo)profManager;
            IWMStreamConfig streamConfig;

            codecInfo.GetCodecFormat(ref mediaTypeGuid, (uint)0, (uint)74, out streamConfig);
            streamConfig.SetStreamNumber(1);
            streamConfig.SetStreamName("AudioStream1");
            streamConfig.SetConnectionName("Audio1");
        }