[Alsa-user] snd_pcm_prepare() after snd_pcm_drain()?
Brought to you by:
perex
From: Greg L. <gr...@li...> - 2005-02-14 00:52:54
|
I changed computers and Alsa started working a little differently, which is puzzling, because I pulled the disk drives and soundcard and just moved them over to the new system. The exact same software, same soundcard. Here is what's different. On my old computer, when I wanted my program to play a new song, I called snd_pcm_drain() snd_pcm_prepare() snd_pcm_reset() But now, calling snd_pcm_prepare() gives a "device busy" error. Simply omitting the call to snd_pcm_prepare() seems to work fine, so I'm back in business. But which is right? Or if different systems really do work differently, how can I program a version that will work for everyone? Thanks for any suggestions, Greg |