Philipp Vollmer wrote: >> it seems params == 0 when you're calling snd_pcm_hw_refine. >Hello, > >Sorry but there is no codeline like snd_pcm_hw_refine in the example. >I will send you the file as an attachment.
in your file: if ((playback_handle = snd_pcm_open (&playback_handle, "default", SND_PCM_STREAM_PLAYBACK, 0)) < 0) { snd_pcm_open returns 0 on success, *not* the pcm handle. have you tried reading the docs yet ;) and haven't you wondered why you pass the address of 'playback_handle' to snd_pcm_open()? gcc warns you about this: $ gcc -c how1.c how1.c: In function `main': how1.c:11: warning: assignment makes pointer from integer without a cast and if you had endeavoured to read the sources of alsa-lib, you'd have discovered that (alsa-lib/src/pcm/pcm.c): int snd_pcm_hw_params_any(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) { _snd_pcm_hw_params_any(params); return snd_pcm_hw_refine(pcm, params); } with all respect, i think you could have tried a little harder to find the error. tim _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel