mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2025-01-05 14:45:46 +00:00
fix build on linux
This commit is contained in:
parent
6378e6afd5
commit
a659adebd0
|
@ -38,10 +38,10 @@ libsoundio is programmed in a tiny subset of C++:
|
||||||
|
|
||||||
## Roadmap
|
## Roadmap
|
||||||
|
|
||||||
0. Dummy
|
|
||||||
0. PulseAudio
|
|
||||||
0. JACK
|
|
||||||
0. ALSA (Linux)
|
0. ALSA (Linux)
|
||||||
|
0. Avoid calling `panic` in PulseAudio.
|
||||||
|
0. JACK
|
||||||
|
0. Dummy
|
||||||
0. CoreAudio (OSX)
|
0. CoreAudio (OSX)
|
||||||
0. ASIO (Windows)
|
0. ASIO (Windows)
|
||||||
0. DirectSound (Windows)
|
0. DirectSound (Windows)
|
||||||
|
|
|
@ -252,7 +252,7 @@ struct SoundIoOsCond * soundio_os_cond_create(void) {
|
||||||
}
|
}
|
||||||
cond->id_init = true;
|
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);
|
soundio_os_cond_destroy(cond);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
#include "util.hpp"
|
#include "util.hpp"
|
||||||
#include "dummy.hpp"
|
#include "dummy.hpp"
|
||||||
#include "pulseaudio.hpp"
|
#include "pulseaudio.hpp"
|
||||||
|
#include "os.hpp"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
@ -71,6 +72,7 @@ void soundio_destroy(struct SoundIo *soundio) {
|
||||||
}
|
}
|
||||||
|
|
||||||
struct SoundIo * soundio_create(void) {
|
struct SoundIo * soundio_create(void) {
|
||||||
|
soundio_os_init();
|
||||||
struct SoundIo *soundio = create<SoundIo>();
|
struct SoundIo *soundio = create<SoundIo>();
|
||||||
if (!soundio) {
|
if (!soundio) {
|
||||||
soundio_destroy(soundio);
|
soundio_destroy(soundio);
|
||||||
|
|
Loading…
Reference in a new issue