Browse Source

Add port register/unregister notification in JackAlsaDriver(5).

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1873 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.71
sletz 17 years ago
parent
commit
d84ac7d4f0
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      linux/alsa/JackAlsaDriver.cpp

+ 6
- 3
linux/alsa/JackAlsaDriver.cpp View File

@@ -2367,9 +2367,12 @@ int JackAlsaDriver::port_register(const char *port_name, const char *port_type,

int JackAlsaDriver::port_unregister(int port_index)
{
fGraphManager->ReleasePort(fClientControl->fRefNum, port_index);
fEngine->NotifyPortRegistation(port_index, false);
return 0;
if (fGraphManager->ReleasePort(fClientControl->fRefNum, port_index) == 0) {
fEngine->NotifyPortRegistation(port_index, false);
return 0;
} else {
return -1;
}
}

void* JackAlsaDriver::port_get_buffer(int port, jack_nframes_t nframes)


Loading…
Cancel
Save