File single-threaded-audio.patch of Package sipx-freeswitch

Index: src/mod/formats/mod_portaudio_stream/mod_portaudio_stream.c
===================================================================
--- src/mod/formats/mod_portaudio_stream/mod_portaudio_stream.c
+++ src/mod/formats/mod_portaudio_stream/mod_portaudio_stream.c
@@ -384,9 +384,15 @@
    npath = switch_core_strdup(module_pool, path);

    tmp = handle->samplerate;
+    /*
+
+    Peter Fowler: commented out this optimization to fix XX-8011. If we always stick with 8Khz then
+    will always have just one thread reading the sound card device
+
    if (tmp == 8000 || tmp == 16000 || tmp == 32000 || tmp == 48000) {
        rate = tmp;
    }
+    */

    if (*path == '#') {
        devNumber = get_dev_by_number(npath + 1, 1);
openSUSE Build Service is sponsored by