Hello, Lets say you call snd_pcm_prepare() but for some reason the creation of the stream fails and pa_create_stream_callback() gets called with command != PA_COMMAND_REPLY then does pa_stream_set_state(s, PA_STREAM_FAILED). Just before snd_pcm_prepare() exits, it clears out pcm->stream. The problem here is that when snd_pcm_close() gets called it references *pcm->stream but it's been set to NULL. Any help or ideas would be greatly appreciated. Rick Bronson