diff options
author | Chris Robinson <[email protected]> | 2011-08-17 06:05:26 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-08-17 06:05:26 -0700 |
commit | 8148626ba36456a5aed2b3e75bbe32f9e7ab0249 (patch) | |
tree | b5de5d71473e9b4a52e1200fb05c3c6a79233f39 /Alc/pulseaudio.c | |
parent | 14ffb8bd9b148185a42aa691c3c3d0c3a04dbc95 (diff) |
Allow the backend init functions to return failure
Diffstat (limited to 'Alc/pulseaudio.c')
-rw-r--r-- | Alc/pulseaudio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c index 5900d728..3aa7e199 100644 --- a/Alc/pulseaudio.c +++ b/Alc/pulseaudio.c @@ -1296,13 +1296,15 @@ static const BackendFuncs pulse_funcs = { //{{{ pulse_available_samples }; //}}} -void alc_pulse_init(BackendFuncs *func_list) //{{{ +ALCboolean alc_pulse_init(BackendFuncs *func_list) //{{{ { *func_list = pulse_funcs; pulse_ctx_flags = 0; if(!GetConfigValueBool("pulse", "spawn-server", 0)) pulse_ctx_flags |= PA_CONTEXT_NOAUTOSPAWN; + + return ALC_TRUE; } //}}} void alc_pulse_deinit(void) //{{{ |