Unify ::get_buffer, remove debug code

This commit is contained in:
Robin Gareus 2022-06-18 22:53:55 +02:00
parent 32161cf154
commit 35612d26c6
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 0 additions and 4 deletions

View File

@ -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);
assert (port);
if (!port || !valid_port (port)) return NULL; // XXX remove me
return port->get_buffer (nframes);
}

View File

@ -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);
assert (port);
if (!port || !valid_port (port)) return NULL; // XXX remove me
return port->get_buffer (nframes);
}

View File

@ -979,9 +979,7 @@ void*
PulseAudioBackend::get_buffer (PortEngine::PortHandle port_handle, pframes_t nframes)
{
BackendPortPtr port = boost::dynamic_pointer_cast<BackendPort> (port_handle);
assert (port);
return port->get_buffer (nframes);
}