Re: [tim-janik/beast] Jack driver new api (#128)



@swesterfeld commented on this pull request.


In bse/driver-jack.cc:

> +        vector<const float *> silence_buffers (output_ringbuffer_.get_n_channels());
+
+        fill (silence_buffers.begin(), silence_buffers.end(), &silence[0]);
+
+        uint frames_written = output_ringbuffer_.write (buffer_frames, &silence_buffers[0]);
+        if (frames_written != buffer_frames)
+          Bse::warning ("JACK driver: output silence init failed: (frames_written != jack->buffer_frames)\n");
+
+      }
+
+    /* activate */
+    if (error == 0)
+      {
+        jack_set_process_callback (jack_client_, static_process_callback, this);
+        jack_set_latency_callback (jack_client_, static_latency_callback, this);
+        jack_on_shutdown (jack_client_, static_shutdown_callback, this);

Fixed. Interesting, didn't know that this would work.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]