fix build on linux

This commit is contained in:
Andrew Kelley 2015-07-02 02:53:08 -07:00
parent 6378e6afd5
commit a659adebd0
3 changed files with 6 additions and 4 deletions

View file

@ -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)

View file

@ -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;
}

View file

@ -9,6 +9,7 @@
#include "util.hpp"
#include "dummy.hpp"
#include "pulseaudio.hpp"
#include "os.hpp"
#include <string.h>
#include <assert.h>
@ -71,6 +72,7 @@ void soundio_destroy(struct SoundIo *soundio) {
}
struct SoundIo * soundio_create(void) {
soundio_os_init();
struct SoundIo *soundio = create<SoundIo>();
if (!soundio) {
soundio_destroy(soundio);