hi,all
In dmai_2_10_00_12, Sound_alsa.c call the alsa API, it include the head file like this " #include <alsa/asoundlib.h> " , There is no ploblem while I compile it. I want to write a program to record and play audio use alsa API directly, that is I could not use Sound_read() Sound_write(). In my program I include asoundlib.h , and my program is locate in dvsdk_demos_3_10_00_16/dm365/alsa_info/
When I run make to compile it , it occur some errors like following.
Making all in subdirectory alsa_info...
Compiling alsa_info.o from alsa_info.c..
alsa_info.c:7:28: error: alsa/asoundlib.h: No such file or directory
alsa_info.c:10: error: expected declaration specifiers or '...' before 'snd_pcm_stream_t'
alsa_info.c: In function 'info':
alsa_info.c:12: error: 'snd_pcm_hw_params_t' undeclared (first use in this function)
alsa_info.c:12: error: (Each undeclared identifier is reported only once alsa_info.c:12: error: for each function it appears in.)
alsa_info.c:12: error: 'hw_params' undeclared (first use in this function)
alsa_info.c:14: error: 'snd_pcm_t' undeclared (first use in this function)
Even I use the absolute path, #include "/home/realtimedsp/dvsdk/linuxlibs-2009.11-armv5te/include/alsa/asoundlib.h" . There is still some errors .
Compiling alsa_info.o from alsa_info.c..
In file included from alsa_info.c:8:
/home/realtimedsp/dvsdk/linuxlibs-2009.11-armv5te/include/alsa/asoundlib.h:42:27: error: alsa/asoundef.h: No such file or directory
/home/realtimedsp/dvsdk/linuxlibs-2009.11-armv5te/include/alsa/asoundlib.h:43:26: error: alsa/version.h: No such file or directory
/home/realtimedsp/dvsdk/linuxlibs-2009.11-armv5te/include/alsa/asoundlib.h:44:25: error: alsa/global.h: No such file or directory
My EVM Board
DM365,
Linux arago 2.6.32-rc2-davinci1 ,
dvsdk_3_10_00_19,
arm-2009q1
Regards,
yuan