mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
Unify ::get_buffer, remove debug code
This commit is contained in:
parent
32161cf154
commit
35612d26c6
3 changed files with 0 additions and 4 deletions
|
|
@ -1255,7 +1255,6 @@ CoreAudioBackend::get_buffer (PortEngine::PortHandle port_handle, pframes_t nfra
|
||||||
{
|
{
|
||||||
boost::shared_ptr<BackendPort> port = boost::dynamic_pointer_cast<BackendPort> (port_handle);
|
boost::shared_ptr<BackendPort> port = boost::dynamic_pointer_cast<BackendPort> (port_handle);
|
||||||
assert (port);
|
assert (port);
|
||||||
if (!port || !valid_port (port)) return NULL; // XXX remove me
|
|
||||||
return port->get_buffer (nframes);
|
return port->get_buffer (nframes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1446,7 +1446,6 @@ PortAudioBackend::get_buffer (PortEngine::PortHandle port_handle, pframes_t nfra
|
||||||
{
|
{
|
||||||
boost::shared_ptr<BackendPort> port = boost::dynamic_pointer_cast<BackendPort>(port_handle);
|
boost::shared_ptr<BackendPort> port = boost::dynamic_pointer_cast<BackendPort>(port_handle);
|
||||||
assert (port);
|
assert (port);
|
||||||
if (!port || !valid_port (port)) return NULL; // XXX remove me
|
|
||||||
return port->get_buffer (nframes);
|
return port->get_buffer (nframes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -979,9 +979,7 @@ void*
|
||||||
PulseAudioBackend::get_buffer (PortEngine::PortHandle port_handle, pframes_t nframes)
|
PulseAudioBackend::get_buffer (PortEngine::PortHandle port_handle, pframes_t nframes)
|
||||||
{
|
{
|
||||||
BackendPortPtr port = boost::dynamic_pointer_cast<BackendPort> (port_handle);
|
BackendPortPtr port = boost::dynamic_pointer_cast<BackendPort> (port_handle);
|
||||||
|
|
||||||
assert (port);
|
assert (port);
|
||||||
|
|
||||||
return port->get_buffer (nframes);
|
return port->get_buffer (nframes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue