libsaria: Call add_alsa() during startup

Rather than resetting the preference, it's easier to call the add_alsa()
function if the preference is set.  This also cuts down on startup
warnings!

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2012-02-10 08:28:08 -05:00
parent bec76743da
commit 01bd48d6cc
1 changed files with 2 additions and 1 deletions

View File

@ -88,7 +88,8 @@ namespace libsaria
void audio::init_alsa()
{
use_alsa(using_alsa());
if (using_alsa())
add_alsa();
}
void audio::quit_alsa()