partos of this may become unnecessary once
libardour handles backend changes properly^Wdifferently.
+ engine.buffer_size_change (_samples_per_period);
engine.reconnect_ports ();
if (pthread_create (&_main_thread, NULL, pthread_process, this)) {
engine.reconnect_ports ();
if (pthread_create (&_main_thread, NULL, pthread_process, this)) {
{
void *status;
if (!_running) {
{
void *status;
if (!_running) {
uint32_t
DummyAudioBackend::get_midi_event_count (void* port_buffer)
{
uint32_t
DummyAudioBackend::get_midi_event_count (void* port_buffer)
{
- assert (port_buffer && _running);
return static_cast<DummyMidiBuffer*>(port_buffer)->size ();
}
void
DummyAudioBackend::midi_clear (void* port_buffer)
{
return static_cast<DummyMidiBuffer*>(port_buffer)->size ();
}
void
DummyAudioBackend::midi_clear (void* port_buffer)
{
- assert (port_buffer && _running);
DummyMidiBuffer * buf = static_cast<DummyMidiBuffer*>(port_buffer);
assert (buf);
buf->clear ();
DummyMidiBuffer * buf = static_cast<DummyMidiBuffer*>(port_buffer);
assert (buf);
buf->clear ();
void*
DummyAudioBackend::get_buffer (PortEngine::PortHandle port, pframes_t nframes)
{
void*
DummyAudioBackend::get_buffer (PortEngine::PortHandle port, pframes_t nframes)
{
- assert (port && _running);
assert (valid_port (port));
return static_cast<DummyPort*>(port)->get_buffer (nframes);
}
assert (valid_port (port));
return static_cast<DummyPort*>(port)->get_buffer (nframes);
}