ALSA play wav audio code
2016-08-23
0 0 0
no vote
Other
Earn points
Oriental Yu play source code. This design idea: first open an ordinary wav audio file, take out the definition message of the file header from the 44 bytes in front of the defined file header, and put it in the structure of a file header. Then turn on the alsa audio driver, take out the three important parameters of sampling precision, channel number and sampling frequency from the file header structure, use the alsa audio driver API to set the parameters, finally open the wav file, locate to the data area, write the audio data to the audio driver in turn, and start playing. When the writing is completed, exit the writing cycle. It can be used after testing
c
wav
代码
alsa
播放
音频
Related Source Codes
PClite
0
0
no vote
generic embeded FTP Client
0
0
no vote
UDP Test Demo
0
0
no vote
TMS320F28335 DSP transmits data to EEPROM through
0
0
no vote
TMS320F28335 CAN communication source code
0
0
no vote
No comment