Skip to content
Snippets Groups Projects
Commit dc1d24b3 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Re-enable PulseAudio, ensure the handle is set to NULL on close.

parent 123f60d7
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1545 passed
......@@ -415,7 +415,6 @@ DLLCALL xptone_open_locked(void)
}
if(pu_api != NULL) {
if(!pulseaudio_initialized) {
#if 0
pa_sample_spec ss;
ss.format = PA_SAMPLE_U8;
ss.rate = 22050;
......@@ -426,7 +425,6 @@ DLLCALL xptone_open_locked(void)
pulseaudio_initialized=TRUE;
pu_api->simple_free(pu_handle);
pu_handle = NULL;
#endif
}
if(pulseaudio_initialized) {
handle_type=SOUND_DEVICE_PULSEAUDIO;
......@@ -757,6 +755,7 @@ BOOL DLLCALL xptone_close_locked(void)
#ifdef WITH_PULSEAUDIO
if(handle_type==SOUND_DEVICE_PULSEAUDIO) {
pu_api->simple_free(pu_handle);
pu_handle = NULL;
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment