diff options
| author | Piotr Pawlow <pp@siedziba.pl> | 2016-02-10 01:55:45 +0100 |
|---|---|---|
| committer | Piotr Pawlow <pp@siedziba.pl> | 2016-02-10 01:55:45 +0100 |
| commit | 39ac2073b66df560ad87695f61a2e3f327c8fbf3 (patch) | |
| tree | 4bf8811dfec3a6ac2a97044a422a97cd49ff8b16 | |
| parent | 2d3fa07c1d17e1ef98fa0d32d6e12eb1e33de844 (diff) | |
Select Portaudio as the default sound system if ALSA is not compiled in.
| -rw-r--r-- | src/lingot-config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lingot-config.c b/src/lingot-config.c index dd4bf65..29c3c9b 100644 --- a/src/lingot-config.c +++ b/src/lingot-config.c @@ -429,7 +429,11 @@ void lingot_config_load(LingotConfig* config, char* filename) { *((audio_system_t*) param) = str_to_audio_system_t( char_buffer_pointer); if (*((audio_system_t*) param) == (audio_system_t) -1) { +# ifdef ALSA *((audio_system_t*) param) = AUDIO_SYSTEM_ALSA; +# elif PORTAUDIO + *((audio_system_t*) param) = AUDIO_SYSTEM_PORTAUDIO; +# endif char buff[1000]; sprintf( buff, |
