Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads SourceCode Embeded-SCM Develop Embeded Linux
  • Category : Embeded Linux
  • Tags :
  • Update : 2012-11-26
  • Size : 3kb
  • Downloaded :0次
  • Author :杨***
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Introduction - If you have any usage issues, please Google them yourself
The sound. C is used for recording and playback. One particular note is: 1. Currently the sound card does not seem to open full duplex, so if fd = open("/dev/dsp", O_RDWR), it cannot be recorded and played back. Only RDONLY and WRONLY can be set respectively. It's half duplex. Otherwise, you can hear it when you're recording it, but you can't play it back. The analysis appears to be that the IIC bus only assigns a channel to the sound card, or only one channel is enabled, so there is no recording and playback synchronization. The solution is to open the audio recording and WRONLY mode in RDONLY mode separately. Sound1.c is used to save the recording in the test.wav file and use cast test.wav > / dev/sound/DSP playback file. It is important to note that the recording frequency must be 44100 to be properly replayed. Otherwise, it will have a similar effect. The analysis should be cast in the way that the default playback frequency of DSP is 4,4100, so if the recording is lower than this frequency, it will be released quickly. In addition, setting the sampling rate must be set to 16bit, otherwise the error will be prompted. The reason is not known, the estimate is related to the sound card.
Packet file list
(Preview for download)
sound.C
sound1.C
调试日志.txt
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is the largest source code store in internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.