Browse Source

Fix Port::getPolyVoltage() typo

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
a34d339220
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/engine/Port.hpp

+ 1
- 1
include/engine/Port.hpp View File

@@ -43,7 +43,7 @@ struct alignas(32) Port {

/** Returns the given channel's voltage if the port is polyphonic, otherwise returns the first voltage (channel 0). */
float getPolyVoltage(int channel) {
return (channels == 1) ? getVoltage(channel) : getVoltage(0);
return (channels > 1) ? getVoltage(channel) : getVoltage(0);
}

/** Returns the voltage if a cable is connected, otherwise returns the given normal voltage. */


Loading…
Cancel
Save