When trying to compile SDL from CVS with ALSA support it throws:
In file included from SDL_alsa_audio.h:27,
from SDL_alsa_audio.c:42:
/usr/include/sys/asoundlib.h:1: warning: #warning This header is deprecated,
use <alsa/asoundlib.h> instead.
SDL_alsa_audio.c:69: parse error before *' SDL_alsa_audio.c: In function
init_pcm_cparams’:
SDL_alsa_audio.c:71: snd_pcm_channel_params_t' undeclared (first use in this function) SDL_alsa_audio.c:71: (Each undeclared identifier is reported only once SDL_alsa_audio.c:71: for each function it appears in.) SDL_alsa_audio.c:71:
cparams’ undeclared (first use in this function)
SDL_alsa_audio.c:73: SND_PCM_CHANNEL_PLAYBACK' undeclared (first use in this function) SDL_alsa_audio.c:74:
SND_PCM_MODE_BLOCK’ undeclared (first use in this
function)
SDL_alsa_audio.c:76: SND_PCM_STOP_STOP' undeclared (first use in this function) SDL_alsa_audio.c:77:
SND_PCM_SFMT_S16_LE’ undeclared (first use in this
function)
SDL_alsa_audio.c: In function Audio_Available': SDL_alsa_audio.c:98:
snd_pcm_channel_params_t’ undeclared (first use in this
function)
SDL_alsa_audio.c:98: parse error before cparams' SDL_alsa_audio.c:106:
cparams’ undeclared (first use in this function)
SDL_alsa_audio.c:108: SND_PCM_OPEN_PLAYBACK' undeclared (first use in this function) SDL_alsa_audio.c:108:
SND_PCM_OPEN_NONBLOCK’ undeclared (first use in this
function)
SDL_alsa_audio.c:108: warning: passing arg 2 of snd_pcm_open' makes pointer from integer without a cast SDL_alsa_audio.c:111: warning: implicit declaration of function
snd_pcm_plugin_params’
SDL_alsa_audio.c: At top level:
SDL_alsa_audio.c:246: parse error before cstatus' SDL_alsa_audio.c:246: warning: type defaults to
int’ in declaration of
cstatus' SDL_alsa_audio.c:246: warning: data definition has no type or storage class SDL_alsa_audio.c: In function
PCM_PlayAudio’:
SDL_alsa_audio.c:254: warning: implicit declaration of function
snd_pcm_plugin_write' SDL_alsa_audio.c:269: warning: implicit declaration of function
snd_pcm_plugin_status’
SDL_alsa_audio.c:274: request for member status' in something not a structure or union SDL_alsa_audio.c:274:
SND_PCM_STATUS_UNDERRUN’ undeclared (first use in this
function)
SDL_alsa_audio.c:275: request for member status' in something not a structure or union SDL_alsa_audio.c:275:
SND_PCM_STATUS_READY’ undeclared (first use in this
function)
SDL_alsa_audio.c:280: warning: implicit declaration of function
snd_pcm_plugin_prepare' SDL_alsa_audio.c:280:
SND_PCM_CHANNEL_PLAYBACK’ undeclared (first use in this
function)
SDL_alsa_audio.c: In function PCM_CloseAudio': SDL_alsa_audio.c:317: warning: implicit declaration of function
snd_pcm_plugin_flush’
SDL_alsa_audio.c:317: SND_PCM_CHANNEL_PLAYBACK' undeclared (first use in this function) SDL_alsa_audio.c: In function
PCM_OpenAudio’:
SDL_alsa_audio.c:334: snd_pcm_channel_params_t' undeclared (first use in this function) SDL_alsa_audio.c:334: parse error before
cparams’
SDL_alsa_audio.c:335: snd_pcm_channel_setup_t' undeclared (first use in this function) SDL_alsa_audio.c:341:
cparams’ undeclared (first use in this function)
SDL_alsa_audio.c:348: SND_PCM_OPEN_PLAYBACK' undeclared (first use in this function) SDL_alsa_audio.c:348:
SND_PCM_OPEN_NONBLOCK’ undeclared (first use in this
function)
SDL_alsa_audio.c:348: warning: passing arg 2 of snd_pcm_open' makes pointer from integer without a cast SDL_alsa_audio.c:376:
SND_PCM_SFMT_U8’ undeclared (first use in this
function)
SDL_alsa_audio.c:380: SND_PCM_SFMT_S8' undeclared (first use in this function) SDL_alsa_audio.c:384:
SND_PCM_SFMT_S16_LE’ undeclared (first use in this
function)
SDL_alsa_audio.c:388: SND_PCM_SFMT_S16_BE' undeclared (first use in this function) SDL_alsa_audio.c:392:
SND_PCM_SFMT_U16_LE’ undeclared (first use in this
function)
SDL_alsa_audio.c:396: SND_PCM_SFMT_U16_BE' undeclared (first use in this function) SDL_alsa_audio.c:433:
csetup’ undeclared (first use in this function)
SDL_alsa_audio.c:434: SND_PCM_CHANNEL_PLAYBACK' undeclared (first use in this function) SDL_alsa_audio.c:435: warning: implicit declaration of function
snd_pcm_plugin_setup’
SDL_alsa_audio.c:490: warning: implicit declaration of function
snd_pcm_file_descriptor' SDL_alsa_audio.c:501: warning: implicit declaration of function
snd_pcm_playback_go’
make[3]: *** [SDL_alsa_audio.lo] Error 1
make[3]: Saliendo directorio /home/ernesto/src/SDL12/src/audio/alsa' make[2]: *** [all-recursive] Error 1 make[2]: Saliendo directorio
/home/ernesto/src/SDL12/src/audio’
make[1]: *** [all-recursive] Error 1
make[1]: Saliendo directorio `/home/ernesto/src/SDL12/src’
make: *** [all-recursive] Error 1
It doesn’t happens with the SDL-1.2.4 release and I’m using the 0.9.0beta12 of
the ALSA library.
Greettings.
Ernesto.