亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? windows media audio compressor - the code project - managed c++.mht

?? 視頻方面的資料
?? MHT
?? 第 1 頁 / 共 5 頁
字號:
            =
href=3D"http://www.codeproject.com/managedcpp/WmaCompressor.asp#Figure =
2">figure=20
            2</A>, with no more added complexity. Unfortunately, there =
is no=20
            such managed WMF SDK, therefore, some tricks and wrapper =
classes are=20
            necessary to implement the compressor. If you are interested =
in=20
            knowing the details, you can look at <A=20
            =
href=3D"http://www.codeproject.com/managedcpp/WmaCompressor.asp#Figure =
3">figure=20
            3</A> in the <A=20
            =
href=3D"http://www.codeproject.com/managedcpp/WmaCompressor.asp#Implement=
ation details">implementation=20
            details</A> section of this article.</P>
            <H2>Using the code</H2>
            <P>Using the <CODE>WmaWriter</CODE> is easy. You can use it =
in the=20
            same way you use <CODE>BinaryWriter</CODE> =
(<CODE>WmaWriter</CODE>=20
            is a specialization of <CODE>BinaryWriter</CODE>: see <A=20
            =
href=3D"http://www.codeproject.com/managedcpp/WmaCompressor.asp#Figure =
2">figure=20
            2</A>). The only difference with <CODE>BinaryWriter</CODE> =
is that=20
            you must indicate at creation time the format of the input =
data=20
            (data that the writer will receive) using a =
<CODE>WaveFormat</CODE>=20
            instance, and a profile defining the settings of the =
resulting=20
            compressed stream.</P>
            <P>The following VB.NET code shows a simple way of =
compressing a WAV=20
            file using this compressor:</P><PRE lang=3Dvbnet><SPAN =
class=3Dvb-keyword>Imports</SPAN> Yeti.MMedia
<SPAN class=3Dvb-keyword>Imports</SPAN> Yeti.MMedia.Wmf
<SPAN class=3Dvb-keyword>Imports</SPAN> WaveLib
<SPAN class=3Dvb-keyword>Imports</SPAN> System.IO
....

  <SPAN class=3Dvb-keyword>Dim</SPAN> InStr <SPAN =
class=3Dvb-keyword>As</SPAN> WaveStream
  <SPAN class=3Dvb-keyword>Dim</SPAN> writer <SPAN =
class=3Dvb-keyword>As</SPAN> AudioWriter
  <SPAN class=3Dvb-keyword>Dim</SPAN> buff() <SPAN =
class=3Dvb-keyword>As</SPAN> <SPAN class=3Dvb-keyword>Byte</SPAN>
  <SPAN class=3Dvb-keyword>Dim</SPAN> read <SPAN =
class=3Dvb-keyword>As</SPAN> <SPAN class=3Dvb-keyword>Integer</SPAN>

  InStr =3D <SPAN class=3Dvb-keyword>New</SPAN> WaveStream(<SPAN =
class=3Dvb-string>"SomeFile.wav"</SPAN>)
  <SPAN class=3Dvb-keyword>Try</SPAN>
    writer =3D <SPAN class=3Dvb-keyword>New</SPAN> WmaWriter(<SPAN =
class=3Dvb-keyword>New</SPAN> FileStream(<SPAN =
class=3Dvb-string>"SomeFile.wma"</SPAN>, FileMode.Create), _
                          InStr.Format)
    <SPAN class=3Dvb-comment>'The previous line is equivalent to:</SPAN>
    <SPAN class=3Dvb-comment>'writer =3D New WmaWriter(New =
FileStream("SomeFile.wma", FileMode.Create), _</SPAN>
    <SPAN class=3Dvb-comment>'                       InStr.Format, =
_</SPAN>
    <SPAN class=3Dvb-comment>'                       =
WmaWriterProfileManager.AudioSystemProfiles(0))</SPAN>
    <SPAN class=3Dvb-keyword>Try</SPAN>
      buff =3D <SPAN class=3Dvb-keyword>New</SPAN> <SPAN =
class=3Dvb-keyword>Byte</SPAN>(writer.OptimalBufferSize - <SPAN =
class=3Dvb-literal>1</SPAN>) {}
      read =3D InStr.Read(buff, <SPAN class=3Dvb-literal>0</SPAN>, =
buff.Length)
      <SPAN class=3Dvb-keyword>While</SPAN> (read &gt; <SPAN =
class=3Dvb-literal>0</SPAN>)
        writer.Write(buff, <SPAN class=3Dvb-literal>0</SPAN>, read)
        read =3D InStr.Read(buff, <SPAN class=3Dvb-literal>0</SPAN>, =
buff.Length)
      <SPAN class=3Dvb-keyword>End</SPAN> <SPAN =
class=3Dvb-keyword>While</SPAN>
    <SPAN class=3Dvb-keyword>Finally</SPAN>
      writer.Close()
    <SPAN class=3Dvb-keyword>End</SPAN> <SPAN =
class=3Dvb-keyword>Try</SPAN>
  <SPAN class=3Dvb-keyword>Finally</SPAN>
    InStr.Close()
  <SPAN class=3Dvb-keyword>End</SPAN> <SPAN =
class=3Dvb-keyword>Try</SPAN></PRE>
            <P>I made the sample project in VB.NET just to please those =
who love=20
            VB. Anyway, you can use the compressor in C#, Managed C++, =
J# or any=20
            other CLS compliant language. The sample project of the MP3=20
            compressor (also included in the source files) is written in =
C#. You=20
            can also refer to my <A=20
            =
href=3D"http://www.codeproject.com/csharp/CSharpRipper.asp">C Sharp=20
            MP3 Compressor</A> article.</P>
            <P>Another example of using the writer could be an improved =
version=20
            of the ripper described in my article "<A=20
            =
href=3D"http://www.thecodeproject.com/csharp/CSharpRipper.asp">C Sharp=20
            Ripper</A>" to rip directly to WMA format. In the file=20
            <I>Form1.cs</I>, inside the handler of the "Save as.." =
button, there=20
            is the line:</P><PRE lang=3Dcs>m_Writer =3D <SPAN =
class=3Dcs-keyword>new</SPAN> WaveWriter(WaveFile, Format);</PRE>
            <P>Which may be changed to:</P><PRE lang=3Dcs>m_Writer =3D =
<SPAN class=3Dcs-keyword>new</SPAN> WmaWriter(WaveFile, Format);</PRE>
            <P>The rest of the code remains without change and, of =
course, if=20
            you need more control on the compressor parameters, then you =
should=20
            add extra code to supply a <CODE>WmaWriterProfile</CODE> =
instance in=20
            the constructor.</P>
            <H2><A name=3D"Implementation details">Implementation =
details</A></H2>
            <P>The figure below is a more complete class diagram of the=20
            compressor, showing the managed classes and interfaces and =
their=20
            relations with the WMF SDK interfaces.</P>
            <P><A=20
            =
href=3D"http://www.codeproject.com/managedcpp/WmaCompressor/ClassDiagram_=
big.jpg"=20
            target=3D_blank><IMG height=3D470=20
            =
src=3D"http://www.codeproject.com/managedcpp/WmaCompressor/ClassDiagram.j=
pg"=20
            width=3D600></A></P>
            <P><A name=3D"Figure 3">Figure 3</A>: Windows Media Audio =
Compressor:=20
            implementation details.</P>
            <P>I'm going to avoid the explanation of the implementation =
details.=20
            I just included the class diagram for those who want to see =
how this=20
            project was implemented and help them to better understand =
the code=20
            included with this article.</P>
            <P>If you only want to use the compressor as is, then you =
can safely=20
            ignore these implementation details.</P>
            <H2>Conclusion</H2>
            <P>As showed here, the use of this compressor is relatively =
easy=20
            even if the implementation is somewhat complex due to =
interaction of=20
            managed and unmanaged code. There are some features of =
Windows Media=20
            Format that are not included in this project, such as DRM =
support,=20
            metadata attributes and two-pass encoding.</P>
            <P>The sample code is given for demonstration purposes only, =
you can=20
            use it as reference if you need to develop some product with =
these=20
            technologies. When a managed version of WMF SDK is =
available, it=20
            will be easier to implement managed solutions using WMF. At =
the=20
            moment, this approach could be a good solution, considering =
that the=20
            unmanaged part can be suppressed without changing the design =
of=20
            managed part.</P><!-- Article Ends --></DIV></SPAN>
            <SCRIPT =
src=3D"http://www.codeproject.com/script/togglePre.js"=20
            type=3Dtext/javascript></SCRIPT>

            <H2>Idael Cardoso</H2>
            <DIV style=3D"OVERFLOW: hidden">
            <TABLE border=3D0>
              <TBODY>
              <TR vAlign=3Dtop>
                <TD class=3DsmallText noWrap><BR></TD>
                <TD class=3DsmallText>
                  <P class=3DsmallText>Click <A=20
                  =
href=3D"http://www.codeproject.com/script/profile/whos_who.asp?vt=3Darts&=
amp;id=3D325803">here</A>=20
                  to view Idael Cardoso's online=20
            profile.</P></TD></TR></TBODY></TABLE></DIV><BR>
            <TABLE cellPadding=3D4 width=3D"100%" border=3D0>
              <TBODY>
              <TR vAlign=3Dtop>
                <TD width=3D"100%">
                  <H2>Other popular Managed C++ articles:</H2>
                  <UL>
                    <LI><A=20
                    =
href=3D"http://www.codeproject.com/managedcpp/quake2.asp">Quake=20
                    II .NET</A>
                    <DIV class=3DsmallText>A port of the famous =
C-language based=20
                    game engine to Visual C++ with a .NET managed =
heads-up=20
                    display.</DIV>
                    <LI><A=20
                    =
href=3D"http://www.codeproject.com/managedcpp/loadbalancing.asp">.NET=20
                    Dynamic Software Load Balancing</A>
                    <DIV class=3DsmallText>A Draft Implementation of an =
Idea for=20
                    .NET Dynamic Software Load Balancing</DIV>
                    <LI><A=20
                    =
href=3D"http://www.codeproject.com/managedcpp/cppcliintro01.asp">A=20
                    first look at C++/CLI</A>
                    <DIV class=3DsmallText>A brief look at the new =
C++/CLI syntax=20
                    and how it improves over the old MC++ syntax</DIV>
                    <LI><A=20
                    =
href=3D"http://www.codeproject.com/managedcpp/get_the_ip_out_tcpclient.as=
p">How=20
                    to get the clients IP address using TcpClient in =
Managed=20
                    C++</A>
                    <DIV class=3DsmallText>How to get the clients IP =
address using=20
                    TcpClient in Managed C++</DIV></LI></UL></TD>
                <TD width=3D360>
                  <SCRIPT language=3Djavascript>document.write("<a =
href=3D\"/script/admentor/admentorredir.asp?id=3D3215&way=3Dban\" =
target=3D_blank><img =
src=3D\"/script/ann/ServeImg.aspx?File=3D%2Fscript%2Fadmentor%2Fimages%2F=
vista%5Fmobile%5Fcp%5Fcompetition%5F300x250%2Egif&C=3DFalse&id=3D3215&cb=3D=
1307604\" alt=3D\"\" border=3D0 width=3D300 =
height=3D250></a>");</SCRIPT>
                </TD></TR></TBODY></TABLE>
            <FORM action=3D/script/rating/code/app/insert_vote.asp=20
            method=3Dpost><INPUT type=3Dhidden=20
            value=3DWmaCompressor/managedcpp4/9/2004 name=3Dvote_name> =
<INPUT=20
            type=3Dhidden value=3D/managedcpp/WmaCompressor.asp =
name=3Dgoal>=20
            <TABLE cellSpacing=3D0 cellPadding=3D1 width=3D"100%" =
bgColor=3D#ff9900=20
            border=3D0>
              <TBODY>
              <TR>
                <TD width=3D"100%">
                  <TABLE cellSpacing=3D0 cellPadding=3D4 width=3D"100%"=20
                  bgColor=3D#fbedbb border=3D0>
                    <TBODY>
                    <TR>
                      <TD class=3Dsmalltext vAlign=3Dcenter>[<A=20
                        =
href=3D"http://www.codeproject.com/managedcpp/WmaCompressor.asp#__top">To=
p</A>]</TD>
                      <TD vAlign=3Dcenter noWrap =
align=3Dright><I><B>Rate this=20
                        Article for us!</B></I>&nbsp;&nbsp;&nbsp;&nbsp;=20
                        <I>Poor</I><INPUT type=3Dradio value=3D1 =
name=3Drate><INPUT=20
                        type=3Dradio value=3D2 name=3Drate><INPUT =
type=3Dradio value=3D3=20
                        name=3Drate><INPUT type=3Dradio value=3D4 =
name=3Drate><INPUT=20
                        type=3Dradio value=3D5=20
name=3Drate><I>Excellent</I>&nbsp;&nbsp;<INPUT class=3DFormButton =
type=3Dsubmit value=3DVote>=20
                      =
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></FORM>
            <CENTER>
            <TABLE cellSpacing=3D0 cellPadding=3D0 border=3D0>
              <TBODY>
              <TR>
                <TD=20
                style=3D"PADDING-RIGHT: 2px; PADDING-LEFT: 2px; =
PADDING-BOTTOM: 2px; PADDING-TOP: 2px; BACKGROUND-COLOR: #eee"=20
                width=3D120 height=3D60>
                  <DIV align=3Dcenter>
                  <SCRIPT language=3Djavascript>document.write("<IFRAME =
src=3D\"/script/ann/ServeHTML.aspx?C=3DFalse&id=3D2469&cb=3D1307607\" =
border=3D0 frameborder=3D0 scrolling=3Dno width=3D120 =
height=3D60></IFRAME>");</SCRIPT>
                  </DIV></TD>
                <TD width=3D100>&nbsp;</TD>
                <TD width=3D468 height=3D60><SPAN id=3DAdBanner5>
                  <SCRIPT language=3Djavascript>document.write("<IFRAME =
src=3D\"/script/ann/ServeHTML.aspx?C=3DFalse&id=3D3025&cb=3D1307590\" =
border=3D0 frameborder=3D0 scrolling=3Dno width=3D468 =
height=3D60></IFRAME>");</SCRIPT>
                  </SPAN></TD></TR></TBODY></TABLE></CENTER><A =
name=3D__comments></A>
            <SCRIPT language=3DJavaScript>

function MsgVoteForm(MemberID, MsgID)
{
	document.write("<span id=3D\"MVF" + MsgID + "\">");
	document.write("Rate this message: ");
	for (var i=3D1; i<=3D5;i++)
	{
		document.write("<a href=3D'#xx" + MsgID.toString() + "xx' =
title=3D'give this message a vote of " + i.toString());
		document.write("' onclick=3D'return RateMsg(" + MemberID.toString() + =

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品乱子久久久久| 亚洲gay无套男同| 美脚の诱脚舐め脚责91| 欧美美女bb生活片| 偷拍一区二区三区| 日韩欧美综合在线| 国产裸体歌舞团一区二区| 国产喷白浆一区二区三区| 91在线你懂得| 奇米精品一区二区三区在线观看一| 欧美一级专区免费大片| 国产精品白丝av| 亚洲综合一区二区精品导航| 91精品国产综合久久福利软件 | 精品国产一区二区在线观看| 国产精品538一区二区在线| **欧美大码日韩| 欧美精品三级日韩久久| 国产剧情一区在线| 一区二区三区精密机械公司| 欧美大片一区二区| 成人美女视频在线看| 亚洲不卡一区二区三区| 国产亚洲欧洲一区高清在线观看| caoporn国产一区二区| 亚洲bdsm女犯bdsm网站| 国产精品三级电影| 欧美一区二区三区在线观看| 国产.欧美.日韩| 五月天亚洲精品| 国产精品免费视频观看| 欧美理论片在线| 成人av影视在线观看| 热久久国产精品| 亚洲精品成a人| 久久久久久综合| 欧美日韩mp4| av网站免费线看精品| 美女脱光内衣内裤视频久久影院| 亚洲欧洲国产日韩| 久久久久久久国产精品影院| 欧美日韩精品免费观看视频 | 成人免费视频视频在线观看免费| 亚洲成人7777| 亚洲女女做受ⅹxx高潮| 久久影院午夜论| 6080亚洲精品一区二区| 91国内精品野花午夜精品 | caoporen国产精品视频| 极品美女销魂一区二区三区免费| 亚洲成a人片在线不卡一二三区| 中文字幕精品三区| 久久亚洲捆绑美女| 欧美一级欧美三级在线观看| 日本精品一级二级| av成人免费在线| 成人永久aaa| 国产精品一区二区三区四区| 日韩av中文在线观看| 亚洲尤物视频在线| 亚洲精品福利视频网站| 国产精品久久久久久久久免费丝袜 | 91成人免费在线| 成人精品小蝌蚪| 高清久久久久久| 高清不卡在线观看| 国产精品亚洲а∨天堂免在线| 精品一区精品二区高清| 久久99精品一区二区三区三区| 日韩国产在线观看一区| 亚洲bt欧美bt精品| 五月婷婷综合在线| 首页欧美精品中文字幕| 亚洲成人先锋电影| 热久久国产精品| 久久精品国产第一区二区三区| 青娱乐精品在线视频| 免费不卡在线观看| 久久91精品国产91久久小草| 久久精品国产亚洲5555| 久久成人麻豆午夜电影| 精品一区二区免费看| 国产精品一区二区在线播放| 成人午夜碰碰视频| 91免费国产在线观看| 欧美三片在线视频观看| 5566中文字幕一区二区电影| 日韩久久免费av| 国产亚洲欧美一区在线观看| 中文字幕五月欧美| 一区二区在线观看免费 | 国产精品视频一区二区三区不卡| 国产精品视频一二三区 | 日韩女优制服丝袜电影| 精品国产污网站| 中文字幕乱码日本亚洲一区二区| 亚洲欧洲av一区二区三区久久| 亚洲一区国产视频| 久久激情五月婷婷| 成人免费视频免费观看| 91福利在线播放| 51精品国自产在线| 久久丝袜美腿综合| 亚洲精品成人在线| 麻豆精品一区二区| av网站免费线看精品| 91精品国产综合久久婷婷香蕉| 国产亚洲精品超碰| 一区二区免费在线| 国产一区二区中文字幕| 91福利在线播放| 久久久久久99精品| 亚洲国产裸拍裸体视频在线观看乱了| 美女网站视频久久| 一本到不卡精品视频在线观看 | 欧美久久久久免费| 国产欧美日韩视频一区二区| 亚洲成人午夜电影| 国产91精品在线观看| 欧美日韩激情一区二区| 国产夜色精品一区二区av| 亚洲一区av在线| 国产精品资源网| 欧美精品一级二级三级| 国产精品无遮挡| 日本欧美韩国一区三区| 91无套直看片红桃| 国产亚洲一区二区三区在线观看 | 亚洲综合色噜噜狠狠| 国内精品久久久久影院色| 欧美最新大片在线看| 国产欧美精品一区| 久久国产视频网| 欧美日本乱大交xxxxx| 中文av一区特黄| 精品一区二区在线视频| 欧美日韩成人在线| 亚洲美女偷拍久久| 国产成人高清在线| 精品成a人在线观看| 日韩高清不卡一区| 欧美天堂一区二区三区| 一区免费观看视频| 粉嫩高潮美女一区二区三区 | 免费亚洲电影在线| 欧美曰成人黄网| 亚洲免费伊人电影| caoporn国产精品| 欧美国产成人在线| 高清视频一区二区| 久久久国产精品麻豆| 狠狠久久亚洲欧美| 精品理论电影在线| 男女男精品视频网| 这里是久久伊人| 日韩黄色小视频| 欧美精品成人一区二区三区四区| 一区二区三区四区精品在线视频| 99精品欧美一区二区三区小说| 国产精品少妇自拍| 成人免费黄色大片| 国产精品色在线| 99久久婷婷国产| 亚洲精品美国一| 欧美亚洲另类激情小说| 亚洲第一福利视频在线| 欧美在线看片a免费观看| 亚洲一区中文在线| 欧美日韩国产首页| 免费观看久久久4p| 在线播放视频一区| 五月天一区二区三区| 日韩视频在线你懂得| 精品一区二区国语对白| 久久久久国产成人精品亚洲午夜| 国产成人av电影免费在线观看| 国产精品天美传媒| 色婷婷久久久综合中文字幕| 一区av在线播放| 在线不卡免费欧美| 开心九九激情九九欧美日韩精美视频电影| 日韩欧美成人激情| 国产成人av影院| 国产精品国产精品国产专区不蜜| 日本高清视频一区二区| 五月天亚洲婷婷| 久久蜜桃av一区二区天堂| av电影在线观看一区| 亚洲成人免费看| 久久综合色鬼综合色| 色综合久久久网| 视频在线在亚洲| 国产亚洲欧美日韩日本| 中文字幕色av一区二区三区| 色婷婷综合久久久中文一区二区| 五月婷婷综合网| 欧美激情中文不卡| 欧美日免费三级在线| 国产一区二区三区日韩| |精品福利一区二区三区|