diff --git a/README.md b/README.md index f73e4ec..a4b72c4 100644 --- a/README.md +++ b/README.md @@ -38,10 +38,10 @@ libsoundio is programmed in a tiny subset of C++: ## Roadmap - 0. Dummy - 0. PulseAudio - 0. JACK 0. ALSA (Linux) + 0. Avoid calling `panic` in PulseAudio. + 0. JACK + 0. Dummy 0. CoreAudio (OSX) 0. ASIO (Windows) 0. DirectSound (Windows) diff --git a/src/os.cpp b/src/os.cpp index 706479a..1411363 100644 --- a/src/os.cpp +++ b/src/os.cpp @@ -252,7 +252,7 @@ struct SoundIoOsCond * soundio_os_cond_create(void) { } cond->id_init = true; - if ((err = pthread_mutex_init(&cond->default_mutex_id, NULL))) { + if ((pthread_mutex_init(&cond->default_mutex_id, NULL))) { soundio_os_cond_destroy(cond); return NULL; } diff --git a/src/soundio.cpp b/src/soundio.cpp index 58aebfa..411054f 100644 --- a/src/soundio.cpp +++ b/src/soundio.cpp @@ -9,6 +9,7 @@ #include "util.hpp" #include "dummy.hpp" #include "pulseaudio.hpp" +#include "os.hpp" #include #include @@ -71,6 +72,7 @@ void soundio_destroy(struct SoundIo *soundio) { } struct SoundIo * soundio_create(void) { + soundio_os_init(); struct SoundIo *soundio = create(); if (!soundio) { soundio_destroy(soundio);