[SDL] SDL 1.2.6 and ALSA 1.0.x

wwp subscript at free.fr
Thu Jan 29 13:29:36 PST 2004


Hi SDL users,


I'm trying to compile SDL 1.2.6 against ALSA 1.0.2/1.0.1 and it fails:

SDL_alsa_audio.c: In function `ALSA_OpenAudio':
SDL_alsa_audio.c:272: too few arguments to function
	`snd_pcm_hw_params_get_channels'
SDL_alsa_audio.c:282: warning: passing arg 3 of
	`snd_pcm_hw_params_set_rate_near' makes pointer from integer without a cast
SDL_alsa_audio.c:292: warning: passing arg 3 of
	`snd_pcm_hw_params_set_period_size_near' makes pointer from integer without
	a cast
SDL_alsa_audio.c:294: warning: passing arg 3 of
	`snd_pcm_hw_params_set_periods_near' makes pointer from integer without a cast
make[3]: *** [SDL_alsa_audio.lo] Error 1

IIRC, there have been some API changes around snd_pcm_hw_params, maybe since
1.0.x, I can't really remember when. Obviously the compilation error is a API issue, so
my question is: is SDL's CVS sync'ed w/ recent ALSA API or is there another way to
compile 1.2.6 against ALSA 1.0.x?


TIA,

-- 
wwp




More information about the SDL mailing list