• ALSA的采样频率不一致问题


    ALSA的采样频率不一致问题 选项 
       
    twn  查看个人资料    

    发件人:twn <twn2...@163.com>
    日期:Thu, 31 Mar 2011 10:16:59 +0800 (CST)
    当地时间:2011年3月30日(星期三) 下午10时16分
    主题:ALSA的采样频率不一致问题
    打印 | 单个帖子 | 显示原始帖 | 举报此帖 | 查找此作者的帖子 
    hi,宋老师 

      我遇到一下问题,请你看一下,给个建议 
      电脑实时把录到的声音传到我的板子上,我的板端程序实时去放音,结果声调变得很厉害,我上网找资料说是电脑的声卡采样频率和板子的采样频率不一致造成的,大家知­道怎么解决吗? 

     
    Barry Song    查看个人资料   翻译成中文(简体) 翻译内容(查看原文内容)  
      更多选项 3月30日, 下午10时44分  


    发件人:Barry Song <21cn...@gmail.com>
    日期:Wed, 30 Mar 2011 19:44:02 -0700
    当地时间:2011年3月30日(星期三) 下午10时44分
    主题:Re: [linux-driver] ALSA的采样频率不一致问题
    打印 | 单个帖子 | 显示原始帖 | 举报此帖 | 查找此作者的帖子 
    tell us your audio patch , the frequency from computer and the 
    frequency your sound card supports. 
    You capture analog audio and then play this analog? or you transfer 
    analog audo from pc to digtal audio, then play digital audio in your 
    sound card? 


    在 2011年3月30日 下午7:16,twn <twn2...@163.com> 写道: 




    > hi,宋老师 


    >   我遇到一下问题,请你看一下,给个建议 




    >  电脑实时把录到的声音传到我的板子上,我的板端程序实时去放音,结果声调变得很厉害,我上网找资料说是电脑的声卡采样频率和板子的采样频率不一致造成的,大家知­道怎么解决吗? 




    > -- 
    > _______________________________________________ 
    > Linux设备驱动开发邮件列表 linuxdriver@googlegroups.com 
    > http://groups.google.gr/group/linuxdriver?hl=zh-CN 
    > 退订请使用原订阅邮箱发邮件至:linuxdriver+unsubscribe@googlegroups.com 
         
       
    twn    查看个人资料    
      更多选项 3月30日, 下午11时42分  


    发件人:twn <twn2...@163.com>
    日期:Thu, 31 Mar 2011 11:42:32 +0800 (CST)
    当地时间:2011年3月30日(星期三) 下午11时42分
    主题:Re:Re: [linux-driver] ALSA的采样频率不一致问题
    打印 | 单个帖子 | 显示原始帖 | 举报此帖 | 查找此作者的帖子 
    电脑上的客户端程序设置成采样频率为8K,精度为16bits,每采集1024个byte就发送给我的板子的程序,我的板上设置也是8k,16bits,我用一­个线程去接收这1024个byte,然后另一个线程去一边保存成文件,一边用snd_pcm_writei去播放,结果保存的文件用的COOLedit播放没有­问题,但是用snd_pcm_writei在板端播放,就会出现underrun! 




     > -----原始邮件----- 






    - 隐藏被引用文字 -
    - 显示引用的文字 -


    > 发件人: "Barry Song" <21cn...@gmail.com> 
    > 发送时间: 2011年3月31日 星期四 
    > 收件人: linuxdriver@googlegroups.com 
    > 抄送: twn <twn2...@163.com> 
    > 主题: Re: [linux-driver] ALSA的采样频率不一致问题 


    > tell us your audio patch , the frequency from computer and the 
    > frequency your sound card supports. 
    > You capture analog audio and then play this analog? or you transfer 
    > analog audo from pc to digtal audio, then play digital audio in your 
    > sound card? 




    > 在 2011年3月30日 下午7:16,twn <twn2...@163.com> 写道: 
    > > hi,宋老师 




    > >   我遇到一下问题,请你看一下,给个建议 




    > >  电脑实时把录到的声音传到我的板子上,我的板端程序实时去放音,结果声调变得很厉害,我上网找资料说是电脑的声卡采样频率和板子的采样频率不一致造成的,大家知­道怎么解决吗? 




    > > -- 
    > > _______________________________________________ 
    > > Linux设备驱动开发邮件列表 linuxdriver@googlegroups.com 
    > > http://groups.google.gr/group/linuxdriver?hl=zh-CN 
    > > 退订请使用原订阅邮箱发邮件至:linuxdriver+unsubscribe@googlegroups.com 




    > -- 
    > _______________________________________________ 
    > Linux设备驱动开发邮件列表 linuxdriver@googlegroups.com 
    > http://groups.google.gr/group/linuxdriver?hl=zh-CN 
    > 退订请使用原订阅邮箱发邮件至:linuxdriver+unsubscribe@googlegroups.com 
         
       
    崔英云    查看个人资料    
      更多选项 3月31日, 下午11时48分  


    发件人:崔英云 <cuiying...@gmail.com>
    日期:Fri, 1 Apr 2011 11:48:58 +0800
    当地时间:2011年3月31日(星期四) 下午11时48分
    主题:Re: Re: [linux-driver] ALSA的采样频率不一致问题
    打印 | 单个帖子 | 显示原始帖 | 举报此帖 | 查找此作者的帖子 
    ",我用一个线程去接收这1024个byte,然后另一个线程去一边保存成文件,一边用snd_pcm_writei去播放" 
    接收到的1024byte文件是不是pcm格式的?如果是的话就不用转层文件,直接用snd_pcm_writei就可以了。 




    而且参数都设对了嘛?  音频声道,文件的写方式 等等。 
     underrun可以用以上的方法提高cpu占用率,或者提高buffersize,和periodsize 




    在 2011年3月31日 上午11:42,twn <twn2...@163.com>写道: 






    - 隐藏被引用文字 -
    - 显示引用的文字 -


    > 电脑上的客户端程序设置成采样频率为8K,精度为16bits,每采集1024个byte就发送给我的板子的程序,我的板上设置也是8k,16bits,我用一­个线程去接收这1024个byte,然后另一个线程去一边保存成文件,一边用snd_pcm_writei去播放,结果保存的文件用的COOLedit播放没有­问题,但是用snd_pcm_writei在板端播放,就会出现underrun! 




    >  > -----原始邮件----- 
    > > 发件人: "Barry Song" <21cn...@gmail.com> 
    > > 发送时间: 2011年3月31日 星期四 
    > > 收件人: linuxdriver@googlegroups.com 
    > > 抄送: twn <twn2...@163.com> 
    > > 主题: Re: [linux-driver] ALSA的采样频率不一致问题 




    > > tell us your audio patch , the frequency from computer and the 
    > > frequency your sound card supports. 
    > > You capture analog audio and then play this analog? or you transfer 
    > > analog audo from pc to digtal audio, then play digital audio in your 
    > > sound card? 




    > > 在 2011年3月30日 下午7:16,twn <twn2...@163.com> 写道: 
    > > > hi,宋老师 




    > > >   我遇到一下问题,请你看一下,给个建议 




    > > >  电脑实时把录到的声音传到我的板子上,我的板端程序实时去放音,结果声调变得很厉害,我上网找资料说是电脑的声卡采样频率和板子的采样频率不一致造成的,大家知­道怎么解决吗? 




    > > > -- 
    > > > _______________________________________________ 
    > > > Linux设备驱动开发邮件列表 linuxdriver@googlegroups.com 




    > > > http://groups.google.gr/group/linuxdriver?hl=zh-CN 
    > > > 退订请使用原订阅邮箱发邮件至:linuxdriver+unsubscribe@googlegroups.com 




    > > -- 
    > > _______________________________________________ 
    > > Linux设备驱动开发邮件列表 linuxdriver@googlegroups.com 
    > > http://groups.google.gr/group/linuxdriver?hl=zh-CN 
    > > 退订请使用原订阅邮箱发邮件至:linuxdriver+unsubscribe@googlegroups.com 




    >  -- 
    > _______________________________________________ 
    > Linux设备驱动开发邮件列表 linuxdriver@googlegroups.com 
    > http://groups.google.gr/group/linuxdriver?hl=zh-CN 
    > 退订请使用原订阅邮箱发邮件至:linuxdriver+unsubscribe@googlegroups.com 



    http://groups.google.com/group/linuxdriver/browse_thread/thread/82ba178ea917d21






     
  • 相关阅读:
    web接口文档apidoc的使用
    python 文件重命名
    sort()排序
    JavaScript自定义事件和触发(createEvent, dispatchEvent)
    Sql 2016 安装到sql_shared_mrconfigaction-install-confignonrc-cpu64卡住不动,是什么原因呢?
    基础提供程序在Open上失败
    win10 Hyper-v 虚拟机监控程序灰色 尝试检索虚拟交换机列表时出错【转载】
    相对路径获取文件名
    省市区三级联动
    反射==>不明确的匹配
  • 原文地址:https://www.cnblogs.com/eustoma/p/2415822.html
Copyright © 2020-2023  润新知