knows about it.
*/
- PBD::ThreadCreatedWithRequestSize (pthread_self(), X_("Audioengine"), 4096);
+ PBD::notify_gui_about_thread_creation (pthread_self(), X_("Audioengine"), 4096);
MIDI::JACK_MidiPort::set_process_thread (pthread_self());
}
which requires interleaving with route processing.
*/
- if ((*i)->sends_output()) {
- (*i)->cycle_start (nframes, 0);
- }
+ (*i)->cycle_start (nframes, 0);
}
if (_freewheeling) {
}
}
- // Finalize ports (ie write data if necessary)
-
- for (Ports::iterator i = p->begin(); i != p->end(); ++i) {
- (*i)->cycle_end (nframes, 0);
- }
-
if (_freewheeling) {
return 0;
}
Port *port = (*i);
if (port->sends_output()) {
- port->get_buffer().silence(nframes);
+ port->get_buffer(nframes, 0 ).silence(nframes);
}
}
}
+ // Finalize ports (ie write data if necessary)
+
+ for (Ports::iterator i = p->begin(); i != p->end(); ++i) {
+
+ (*i)->cycle_end (nframes, 0);
+ }
+
_processed_frames = next_processed_frames;
return 0;
}
boost::shared_ptr<Ports> p = ports.reader();
for (Ports::iterator i = p->begin(); i != p->end(); ++i) {
- if ((*i)->sends_output()) {
- (*i)->cycle_start (blocksize, 0);
- }
+ (*i)->cycle_start (blocksize, 0);
}
s->process (blocksize);
ae->_buffer_size = 0;
ae->_frame_rate = 0;
- cerr << "!!! HALTED !!!\n";
-
if (was_running) {
ae->Halted(); /* EMIT SIGNAL */
}
void
AudioEngine::transport_start ()
{
- // cerr << "tell JACK to start\n";
if (_jack) {
jack_transport_start (_jack);
}
_jack = jack_client_open (jack_client_name.c_str(), options, &status, server_name);
if (_jack == NULL) {
-
- if (status & JackServerFailed) {
- error << _("Unable to connect to JACK server") << endmsg;
- }
-
// error message is not useful here
return -1;
}
- if (status & JackServerStarted) {
- info << _("JACK server started") << endmsg;
- }
-
if (status & JackNameNotUnique) {
jack_client_name = jack_get_client_name (_jack);
}
if (Config->get_jack_time_master()) {
jack_set_timebase_callback (_jack, 0, _jack_timebase_callback, this);
- }
+ }
if (jack_activate (_jack) == 0) {
_running = true;