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

Do what was likely intended by 8b6b7b7c

The previous attempt completely disabled pulse audio.
parent 89a661b8
No related branches found
No related tags found
No related merge requests found
...@@ -414,23 +414,9 @@ DLLCALL xptone_open_locked(void) ...@@ -414,23 +414,9 @@ DLLCALL xptone_open_locked(void)
} }
} }
if(pu_api != NULL) { if(pu_api != NULL) {
if(!pulseaudio_initialized) { handle_type=SOUND_DEVICE_PULSEAUDIO;
pa_sample_spec ss; handle_rc++;
ss.format = PA_SAMPLE_U8; return(TRUE);
ss.rate = 22050;
ss.channels = 1;
if((pu_handle = pu_api->simple_new(NULL, "XPBeep", PA_STREAM_PLAYBACK, NULL, "Beeps and Boops", &ss, NULL, NULL, NULL)) == NULL)
pulseaudio_device_open_failed=TRUE;
else
pulseaudio_initialized=TRUE;
pu_api->simple_free(pu_handle);
pu_handle = NULL;
}
if(pulseaudio_initialized) {
handle_type=SOUND_DEVICE_PULSEAUDIO;
handle_rc++;
return(TRUE);
}
} }
} }
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment