Ticket #47189: patch-libnyquist-symbol-visibility.diff

File patch-libnyquist-symbol-visibility.diff, 1.8 KB (added by RJVB (René Bertin), 9 years ago)
  • lib-src/libnyquist/nyquist/nyqsrc/sliderdata.c

    diff --git a/lib-src/libnyquist/nyquist/nyqsrc/sliderdata.c b/lib-src/libnyquist/nyquist/nyqsrc/sliderdata.c
    index 178a33f..9f0a68e 100644
    a b void set_slider(int index, float value) 
    1515    }
    1616}
    1717
    18 
     18float get_slider(int index)
     19{
     20    if (index >= 0 && index < SLIDERS_MAX) {
     21        return slider_array[index];
     22    }
     23    else {
     24        return 0.0/0.0;
     25    }
     26}
     27 No newline at end of file
  • lib-src/libnyquist/nyquist/nyqsrc/sliderdata.h

    diff --git a/lib-src/libnyquist/nyquist/nyqsrc/sliderdata.h b/lib-src/libnyquist/nyquist/nyqsrc/sliderdata.h
    index 93f0f85..fa20ecb 100644
    a b extern float slider_array[SLIDERS_MAX]; 
    1010
    1111/* access from the GUI to shared data */
    1212void set_slider(int index, float value);
     13float get_slider(int index);
     14 No newline at end of file
  • lib-src/libnyquist/nyquist/nyqsrc/sndsliders.c

    diff --git a/lib-src/libnyquist/nyquist/nyqsrc/sndsliders.c b/lib-src/libnyquist/nyquist/nyqsrc/sndsliders.c
    index 7fd9ac6..80ebdbf 100644
    a b LVAL xslider_read(void) 
    1717    int index = getfixnum(arg);
    1818    xllastarg();
    1919    if (index >= 0 && index < SLIDERS_MAX) {
    20         return cvflonum(slider_array[index]);
     20//         return cvflonum(slider_array[index]);
     21        return cvflonum(get_slider(index));
    2122    }
    2223    return NIL;
    2324}
    void slider__fetch(snd_susp_type a_susp, snd_list_type snd_list) 
    9192        }
    9293
    9394        n = togo;
    94         c_reg = slider_array[susp->index];
     95//         c_reg = slider_array[susp->index];
     96        c_reg = get_slider(susp->index);
    9597        out_ptr_reg = out_ptr;
    9698        if (n) do { /* the inner sample computation loop */
    9799            *out_ptr_reg++ = c_reg;