void fade_out (gain_t, gain_t, pframes_t);
void silence (pframes_t nframes);
- void silence_physical (pframes_t nframes);
+ void silence_outputs (pframes_t nframes);
void check_monitoring ();
/** Signal the start of an audio cycle.
* This MUST be called before any reading/writing for this cycle.
* before the process_callback. it may even be
* jack/alsa only). but better safe than sorry.
*/
- PortManager::silence_physical (nframes);
+ PortManager::silence_outputs (nframes);
return 0;
}
}
void
-PortManager::silence_physical (pframes_t nframes)
+PortManager::silence_outputs (pframes_t nframes)
{
std::vector<std::string> port_names;
- if (get_ports("", DataType::AUDIO, IsInput, port_names)) {
+ if (get_ports("", DataType::AUDIO, IsOutput, port_names)) {
for (std::vector<std::string>::iterator p = port_names.begin(); p != port_names.end(); ++p) {
if (!port_is_mine(*p)) {
continue;
}
}
- if (get_ports("", DataType::MIDI, IsInput, port_names)) {
+ if (get_ports("", DataType::MIDI, IsOutput, port_names)) {
for (std::vector<std::string>::iterator p = port_names.begin(); p != port_names.end(); ++p) {
if (!port_is_mine(*p)) {
continue;