13
0

add port connect/add/remove callbacks to CoreAudio backend

This commit is contained in:
Paul Davis 2020-04-10 10:01:04 -06:00
parent 2a80832243
commit 1e996ca45f

View File

@ -1611,11 +1611,18 @@ CoreAudioPort::CoreAudioPort (CoreAudioBackend &b, const std::string& name, Port
{
memset (_buffer, 0, sizeof (_buffer));
mlock (_buffer, sizeof (_buffer));
_backend.port_connect_add_remove_callback (); // XXX -> RT
}
CoreAudioPort::~CoreAudioPort () { }
CoreAudioPort::~CoreAudioPort ()
{
_backend.port_connect_add_remove_callback (); // XXX -> RT
}
void* CoreAudioPort::get_buffer (pframes_t n_samples)
void*
CoreAudioPort::get_buffer (pframes_t n_samples)
{
if (is_input ()) {
const std::set<BackendPortPtr>& connections = get_connections ();