-
其中sound.c 用于录音和回放。其中特别需要注意的是:1。目前声卡似乎不能打开全双工,所以如果fd = open("/dev/dsp", O_RDWR) ,...
其中sound.c 用于录音和回放。其中特别需要注意的是:1。目前声卡似乎不能打开全双工,所以如果fd = open("/dev/dsp", O_RDWR) ,则无法录音和回放。只能分别设置RDONLY和WRONLY。即半双工方式。否则,就是在录音的时候可以听见,但是无法回放。分析下来似乎是IIC总线中只分配了一个通道给声卡,或者是只启用了一个通道,所以无法录音和放音同步进行。解决方法就是分别以RDONLY方式打开进行录音和WRONLY方式打开进行放音。
Sound1.c用于将录音保存在test.wav文件中,并利用cast test.wav > /dev/sound/dsp回放文件。此处需要注意的是,录音频率必须是44100才能正确回放。否则就会出现类似快放的效果。分析应该是cast方式利用了dsp的默认播放频率44100,所以如果录音的时候低于这个频率,这放的时候就会快放。
此外,设置采样率的时候必须设置成16bit,否则会提示出错。原因尚不知道,估计是与声卡有关。
- 2022-01-21 20:45:44下载
- 积分:1
-
UC/OS2 的源码 北航大学出版社的那个版本
邵贝贝翻译的
UC/OS2 的源码 北航大学出版社的那个版本
邵贝贝翻译的-UC/OS2 Beihang University Press of the source of the translation version of Shao Beibei
- 2022-05-04 20:59:52下载
- 积分:1
-
Blob autotest. Used on xscale (usb_download function)
Blob autotest. Used on xscale (usb_download function)
- 2022-05-28 21:26:44下载
- 积分:1
-
atmel chip, the network receives the at91sam9260 send procedure, the physical la...
atmel的at91sam9260芯片的网络接收发送程序,物理层芯片为dm9161,通过调试,已用于实际应用-atmel chip, the network receives the at91sam9260 send procedure, the physical layer chip dm9161, through commissioning, has been used in the practical application of
- 2022-08-08 01:27:46下载
- 积分:1
-
ad7710可用程序
经过测试可用的AVR的 AD7710送个开发人员,这个代码是我下载在MEGA上已经测试过的,晶振采用10M,AD为外部时钟,利用串口来读取数据,对于开发人员是个很不错的资料,大家可以下载看看
- 2022-11-14 09:40:04下载
- 积分:1
-
Serial Experiments 3c2410 code can also be applied to projects.
3c2410的串口实验代码,还可以,可应用到工程上。-Serial Experiments 3c2410 code can also be applied to projects.
- 2022-02-15 10:12:44下载
- 积分:1
-
8x8 dot matrix LED display source code on C8051F500
此代码显示如何在8x8点阵LED上显示标牌。此方法使用动态扫描方法来显示,而不是静态显示。
- 2022-02-24 14:32:06下载
- 积分:1
-
cpld数据采集测频
cpld数据采集测频-cpld Frequency Measurement Data Collection
- 2022-03-07 20:05:28下载
- 积分:1
-
一个arm7开发板上的定时器实验程序,此程序用c语言开发。
一个arm7开发板上的定时器实验程序,此程序用c语言开发。-Development of an on-board timer arm7 experimental procedure, this procedure using c language development.
- 2022-03-03 00:50:37下载
- 积分:1
-
lzma的压缩算法再嵌入式系统上的实现,lzma是一个对bin类型文件压缩比很高的压缩算法,一般压缩后的文件大小是原理的1/3...
lzma的压缩算法再嵌入式系统上的实现,lzma是一个对bin类型文件压缩比很高的压缩算法,一般压缩后的文件大小是原理的1/3-LZMA compression algorithm embedded system again on the realization LZMA was a bin file types high compression ratio of compression algorithm, the general compressed file size is the principle of 1/3
- 2022-01-26 06:31:52下载
- 积分:1