Ticket #1540: ao_pulse_restore.patch

File ao_pulse_restore.patch, 685 bytes (added by fx.roure@…, 17 years ago)

patch to restore the correct volume

  • libao2/ao_pulse.c

     
    224224    pa_stream_set_write_callback(stream, stream_request_cb, NULL);
    225225    pa_stream_set_latency_update_callback(stream, stream_latency_update_cb, NULL);
    226226
    227     if (pa_stream_connect_playback(stream, sink, NULL, PA_STREAM_INTERPOLATE_TIMING|PA_STREAM_AUTO_TIMING_UPDATE, &volume, NULL) < 0)
     227    if (pa_stream_connect_playback(stream, sink, NULL, PA_STREAM_INTERPOLATE_TIMING|PA_STREAM_AUTO_TIMING_UPDATE, NULL, NULL) < 0)
    228228        goto unlock_and_fail;
    229229
    230230    /* Wait until the stream is ready */