+ snd_pcm_info_t *info;
+ snd_output_t *log;
+
+ snd_pcm_info_alloca(&info);
+ if (snd_output_stdio_attach(&log, stderr, 0) < 0)
+ EXIT(E_LOG);
+ err = snd_pcm_open(&handle, conf.device_arg,
+ SND_PCM_STREAM_PLAYBACK, 0);
+ if (err < 0)
+ EXIT(E_PCM_OPEN);
+ if ((err = snd_pcm_info(handle, info)) < 0)
+ EXIT(E_SND_PCM_INFO);