📄 wav采样率转换 - c-c++ - it者论坛.htm
字号:
<DT>注册时间</DT>
<DD>2007-11-25 </DD>
<DT>最后登录</DT>
<DD>2007-11-25 </DD></DL>
<P><A href="http://bbs.itzhe.cn/space-uid-2055.html"
target=_blank>查看详细资料</A></P></DIV></TD>
<TD class=postcontent>
<DIV class=postactions>
<P><STRONG title=顶部 onclick=scroll(0,0)>TOP</STRONG> </P>
<DIV class=ad_textlink1 id=ad_thread1_2><A
href="http://bbs.waihuiqun.com/?fromuid=2" target=blank ?><B>外汇群论坛
中文外汇交流网站</B></FONT></A></DIV></DIV></TD></TR></TBODY></TABLE></DIV>
<DIV class="mainbox viewthread">
<TABLE id=pid45776 cellSpacing=0 cellPadding=0 summary=pid45776>
<TBODY>
<TR>
<TD class=postauthor><CITE><A class=dropmenu id=userinfo45776
onmouseover=showMenu(this.id) href="http://bbs.itzhe.cn/space-uid-22.html"
target=_blank>lily</A></CITE>
<DIV class=avatar><IMG
onerror="this.onerror=null;this.src='http://uc.itzhe.cn/images/noavatar_middle.gif'"
src=""></DIV>
<P><EM>新手上路</EM></P>
<P><IMG alt="Rank: 1"
src="wav采样率转换 - C-C++ - IT者论坛.files/star_level1.gif"></P>
<UL>
<LI class=pm><A onclick="pmwin('open', 'uid=22')"
href="http://bbs.itzhe.cn/viewthread.php?tid=6065###">发短消息</A> </LI>
<LI class=buddy><A id=ajax_buddy_3
onclick="ajaxmenu(event, this.id, 3000, 0)"
href="http://bbs.itzhe.cn/my.php?item=buddylist&newbuddyid=22&buddysubmit=yes"
target=_blank>加为好友</A> </LI>
<LI class=offline>当前离线 </LI></UL></TD>
<TD class=postcontent>
<DIV class=postinfo><STRONG id=postnum45776 title=复制帖子链接到剪贴板
onclick="setcopy('http://bbs.itzhe.cn/viewthread.php?tid=6065&page=1#pid45776', '帖子链接已经复制到剪贴板')">4<SUP>#</SUP></STRONG>
<EM onclick="$('postmessage_45776').className='t_bigfont'">大</EM> <EM
onclick="$('postmessage_45776').className='t_msgfont'">中</EM> <EM
onclick="$('postmessage_45776').className='t_smallfont'">小</EM> 发表于
2007-12-5 13:46 <A
href="http://bbs.itzhe.cn/viewthread.php?tid=6065&page=1&authorid=22"
rel=nofollow>只看该作者</A> </DIV>
<DIV class=ad_textlink2 id=ad_thread2_3><A
href="http://www.waihuiqun.com/" target=blank
?><B>外汇群-最专业的中文外汇网站</B></FONT></A></DIV>
<DIV class="postmessage defaultpost">
<DIV id=ad_thread3_3></DIV>
<DIV id=ad_thread4_3></DIV>
<DIV class=t_msgfont id=postmessage_45776>还是说的有点模糊……
问你一个基本问题…… 一个正弦波,周期为2s 在一个周期内,用频率1khz和2khz对其进行采样的话 采样样本点分别为多少? 1khz对应有2000个 2khz对应有4000个
现在假设信号已经经过2khz的采样,样本点有4000个 由于某种原因要将其变成1khz的采样 如何做?
其中一个做法就是中值法,在4000个样本点中,取每2个的中值 最后有1999个样本点,用来替换没有信号无法再采样的情况下的近似
你现在是从44.1khz到8khz 假设原来有441个样本点,转换后实际上只有80个样本点,这才是合理的(你说的也是对的)
然后我们来分析下你的程序 从44.1khz采样样本中抽取441个样本点 然后对这441样本点进行插值,插值算法用的是线性插值,宽度是80 然后共有440*80个样本点(不是441*80) 再对440*80的样本点进行以441个点宽度采样,产生80个点
算法的精度主要取决于这里的线形插值算法。事实上,线性的插值是我们经常用的 还有其他的算法,比如最小二乘法,牛顿插值和拉格朗日插值等等很多算法! 楼主可以尝试一下!</DIV>
<DIV id=post_rate_div_45776></DIV></DIV></TD></TR>
<TR>
<TD class=postauthor>
<DIV class="popupmenu_popup userinfopanel" id=userinfo45776_menu
style="DISPLAY: none">
<DL>
<DT>UID</DT>
<DD>22 </DD>
<DT>帖子</DT>
<DD>3137 </DD>
<DT>精华</DT>
<DD><A
href="http://bbs.itzhe.cn/digest.php?authorid=22">0</A> </DD>
<DT>积分</DT>
<DD>0 </DD>
<DT>阅读权限</DT>
<DD>10 </DD>
<DT>在线时间</DT>
<DD>0 小时 </DD>
<DT>注册时间</DT>
<DD>2007-11-15 </DD>
<DT>最后登录</DT>
<DD>2007-11-15 </DD></DL>
<P><A href="http://bbs.itzhe.cn/space-uid-22.html"
target=_blank>查看详细资料</A></P></DIV></TD>
<TD class=postcontent>
<DIV class=postactions>
<P><STRONG title=顶部 onclick=scroll(0,0)>TOP</STRONG> </P>
<DIV class=ad_textlink1 id=ad_thread1_3><A
href="http://bbs.waihuiqun.com/?fromuid=2" target=blank ?><B>外汇群论坛
中文外汇交流网站</B></FONT></A></DIV></DIV></TD></TR></TBODY></TABLE></DIV>
<DIV class="mainbox viewthread">
<TABLE id=pid45777 cellSpacing=0 cellPadding=0 summary=pid45777>
<TBODY>
<TR>
<TD class=postauthor><A name=lastpost></A><CITE><A class=dropmenu
id=userinfo45777 onmouseover=showMenu(this.id)
href="http://bbs.itzhe.cn/space-uid-2099.html"
target=_blank>daoshan</A></CITE>
<DIV class=avatar><IMG
onerror="this.onerror=null;this.src='http://uc.itzhe.cn/images/noavatar_middle.gif'"
src=""></DIV>
<P><EM>新手上路</EM></P>
<P><IMG alt="Rank: 1"
src="wav采样率转换 - C-C++ - IT者论坛.files/star_level1.gif"></P>
<UL>
<LI class=pm><A onclick="pmwin('open', 'uid=2099')"
href="http://bbs.itzhe.cn/viewthread.php?tid=6065###">发短消息</A> </LI>
<LI class=buddy><A id=ajax_buddy_4
onclick="ajaxmenu(event, this.id, 3000, 0)"
href="http://bbs.itzhe.cn/my.php?item=buddylist&newbuddyid=2099&buddysubmit=yes"
target=_blank>加为好友</A> </LI>
<LI class=offline>当前离线 </LI></UL></TD>
<TD class=postcontent>
<DIV class=postinfo><STRONG id=postnum45777 title=复制帖子链接到剪贴板
onclick="setcopy('http://bbs.itzhe.cn/viewthread.php?tid=6065&page=1#pid45777', '帖子链接已经复制到剪贴板')">5<SUP>#</SUP></STRONG>
<EM onclick="$('postmessage_45777').className='t_bigfont'">大</EM> <EM
onclick="$('postmessage_45777').className='t_msgfont'">中</EM> <EM
onclick="$('postmessage_45777').className='t_smallfont'">小</EM> 发表于
2007-12-5 13:46 <A
href="http://bbs.itzhe.cn/viewthread.php?tid=6065&page=1&authorid=2099"
rel=nofollow>只看该作者</A> </DIV>
<DIV class=ad_textlink2 id=ad_thread2_4><A
href="http://www.waihuiqun.com/" target=blank
?><B>外汇群-最专业的中文外汇网站</B></FONT></A></DIV>
<DIV class="postmessage defaultpost">
<DIV id=ad_thread3_4></DIV>
<DIV id=ad_thread4_4></DIV>
<DIV class=t_msgfont id=postmessage_45777>44K 轉換成
8K 肯定是減少的,怎麼會增加呢?</DIV>
<DIV id=post_rate_div_45777></DIV></DIV></TD></TR>
<TR>
<TD class=postauthor>
<DIV class="popupmenu_popup userinfopanel" id=userinfo45777_menu
style="DISPLAY: none">
<DL>
<DT>UID</DT>
<DD>2099 </DD>
<DT>帖子</DT>
<DD>161 </DD>
<DT>精华</DT>
<DD><A
href="http://bbs.itzhe.cn/digest.php?authorid=2099">0</A> </DD>
<DT>积分</DT>
<DD>0 </DD>
<DT>阅读权限</DT>
<DD>10 </DD>
<DT>在线时间</DT>
<DD>0 小时 </DD>
<DT>注册时间</DT>
<DD>2007-11-25 </DD>
<DT>最后登录</DT>
<DD>2007-11-25 </DD></DL>
<P><A href="http://bbs.itzhe.cn/space-uid-2099.html"
target=_blank>查看详细资料</A></P></DIV></TD>
<TD class=postcontent>
<DIV class=postactions>
<P><STRONG title=顶部 onclick=scroll(0,0)>TOP</STRONG> </P>
<DIV class=ad_textlink1 id=ad_thread1_4><A
href="http://bbs.waihuiqun.com/?fromuid=2" target=blank ?><B>外汇群论坛
中文外汇交流网站</B></FONT></A></DIV></DIV></TD></TR></TBODY></TABLE></DIV></FORM>
<SCRIPT type=text/javascript>var tagarray = [''];var tagencarray = [''];parsetag(45773);</SCRIPT>
<DIV class=pages_btns>
<DIV class=threadflow><A
href="http://bbs.itzhe.cn/redirect.php?fid=11&tid=6065&goto=nextoldset">‹‹
上一主题</A> | <A
href="http://bbs.itzhe.cn/redirect.php?fid=11&tid=6065&goto=nextnewset">下一主题
››</A></DIV><SPAN class=postbtn id=newspecialtmp
onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu(this.id)"><A
href="http://bbs.itzhe.cn/post.php?action=newthread&fid=11&extra="><IMG
title=发新话题 alt=发新话题 src="wav采样率转换 - C-C++ - IT者论坛.files/newtopic.gif"
border=0></A></SPAN> <SPAN class=replybtn><A
href="http://bbs.itzhe.cn/post.php?action=reply&fid=11&tid=6065&extra="><IMG
alt="" src="wav采样率转换 - C-C++ - IT者论坛.files/reply.gif" border=0></A></SPAN></DIV>
<SCRIPT type=text/javascript>
var maxpage = 1;
if(maxpage > 1) {
document.onkeyup = function(e){
e = e ? e : window.event;
var tagname = is_ie ? e.srcElement.tagName : e.target.tagName;
if(tagname == 'INPUT' || tagname == 'TEXTAREA') return;
actualCode = e.keyCode ? e.keyCode : e.charCode;
}
}
</SCRIPT>
</DIV>
<UL class="popupmenu_popup headermenu_popup" id=memcp_menu
style="DISPLAY: none">
<LI><A href="http://bbs.itzhe.cn/memcp.php">控制面板首页</A> </LI>
<LI><A href="http://bbs.itzhe.cn/memcp.php?action=profile">编辑个人资料</A> </LI>
<LI><A href="http://bbs.itzhe.cn/memcp.php?action=credits">积分交易</A> </LI>
<LI><A href="http://bbs.itzhe.cn/memcp.php?action=creditslog">积分记录</A> </LI>
<LI><A href="http://bbs.itzhe.cn/memcp.php?action=usergroups">公众用户组</A>
</LI></UL>
<UL class="popupmenu_popup headermenu_popup" id=stats_menu
style="DISPLAY: none">
<LI><A href="http://bbs.itzhe.cn/stats.php">基本概况</A> </LI>
<LI><A href="http://bbs.itzhe.cn/stats.php?type=views">流量统计</A></LI>
<LI><A href="http://bbs.itzhe.cn/stats.php?type=agent">客户软件</A></LI>
<LI><A href="http://bbs.itzhe.cn/stats.php?type=posts">发帖量记录</A> </LI>
<LI><A href="http://bbs.itzhe.cn/stats.php?type=forumsrank">版块排行</A></LI>
<LI><A href="http://bbs.itzhe.cn/stats.php?type=threadsrank">主题排行</A></LI>
<LI><A href="http://bbs.itzhe.cn/stats.php?type=postsrank">发帖排行</A></LI>
<LI><A href="http://bbs.itzhe.cn/stats.php?type=creditsrank">积分排行</A> </LI>
<LI><A href="http://bbs.itzhe.cn/stats.php?type=trade">交易排行</A> </LI>
<LI><A href="http://bbs.itzhe.cn/stats.php?type=team">管理团队</A> </LI></UL>
<DIV class=ad_footerbanner id=ad_footerbanner1></DIV>
<DIV class=ad_footerbanner id=ad_footerbanner2></DIV>
<DIV class=ad_footerbanner id=ad_footerbanner3></DIV><BR></DIV><!-- close main-->
<TABLE style="MARGIN-TOP: 0px; BACKGROUND-COLOR: #eaeaea" cellSpacing=0
cellPadding=0 align=center>
<TBODY>
<TR>
<TD align=middle>
<DIV
style="MARGIN: 8px 11px 8px 9px; WIDTH: 960px; BACKGROUND-COLOR: #ffffff">
<DIV id=footer>
<DIV class=wrap>
<DIV id=footlinks>
<P>当前时区 GMT+8, 现在时间是 2008-11-3 11:24</P>
<P><A
href="http://bbs.itzhe.cn/member.php?action=clearcookies&formhash=54526f3d">清除
Cookies</A> - <A href="mailto:admin@your.com">联系我们</A> - <A
href="http://bbs.itzhe.cn/" target=_blank>IT者</A> - <A
href="http://bbs.itzhe.cn/archiver/" target=_blank>Archiver</A> - <A
href="http://bbs.itzhe.cn/wap/" target=_blank>WAP</A> - <SPAN
class=scrolltop onclick=window.scrollTo(0,0);>TOP</SPAN> - <SPAN
class=dropmenu id=styleswitcher onmouseover=showMenu(this.id)>界面风格</SPAN>
<SCRIPT type=text/javascript>
function setstyle(styleid) {
location.href = 'viewthread.php?tid=6065&page=1&styleid=' + styleid;
}
</SCRIPT>
<DIV class=popupmenu_popup id=styleswitcher_menu style="DISPLAY: none">
<UL>
<LI><A onclick=setstyle(1)
href="http://bbs.itzhe.cn/viewthread.php?tid=6065###">默认风格</A>
<LI><A onclick=setstyle(2)
href="http://bbs.itzhe.cn/viewthread.php?tid=6065###">喝彩奥运</A>
<LI><A onclick=setstyle(3)
href="http://bbs.itzhe.cn/viewthread.php?tid=6065###">深邃永恒</A>
<LI><A onclick=setstyle(4)
href="http://bbs.itzhe.cn/viewthread.php?tid=6065###">粉妆精灵</A>
<LI><A onclick=setstyle(5)
href="http://bbs.itzhe.cn/viewthread.php?tid=6065###">诗意田园</A>
<LI><A onclick=setstyle(6)
href="http://bbs.itzhe.cn/viewthread.php?tid=6065###">春意盎然</A>
<LI class=current><A onclick=setstyle(7)
href="http://bbs.itzhe.cn/viewthread.php?tid=6065###">discuz7</A></LI></UL></DIV>
<P></P></DIV><A title="Powered by Discuz!" href="http://www.discuz.net/"
target=_blank><IMG alt=Discuz!
src="wav采样率转换 - C-C++ - IT者论坛.files/discuz_icon.gif" border=0></A>
<P id=copyright>Powered by <STRONG><A href="http://www.discuz.net/"
target=_blank>Discuz!</A></STRONG> </P>
<P id=debuginfo>Processed in 1.791085 second(s), 8
queries.</P></DIV></DIV></DIV></TD></TR></TBODY></TABLE></CENTER><SPAN
style="DISPLAY: none">
<SCRIPT src="wav采样率转换 - C-C++ - IT者论坛.files/ystat.js"
type=text/javascript></SCRIPT>
<NOSCRIPT><A href="http://tongji.cn.yahoo.com/"><IMG
src="wav采样率转换 - C-C++ - IT者论坛.files/ystat.gif"></A></NOSCRIPT></SPAN></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -