Browse Source

Added Port::active alias for Port::channels. Set default Port channels to 0.

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

+ 9
- 5
include/engine/Port.hpp View File

@@ -18,11 +18,15 @@ struct alignas(32) Port {
/** DEPRECATED. Unstable API. Use getVoltage() and setVoltage() instead. */
float value;
};
/** Number of polyphonic channels
Unstable API. Use set/getChannels() instead.
May be 0 to PORT_MAX_CHANNELS.
*/
uint8_t channels = 1;
union {
/** Number of polyphonic channels
Unstable API. Use set/getChannels() instead.
May be 0 to PORT_MAX_CHANNELS.
*/
uint8_t channels = 0;
/** DEPRECATED. Unstable API. Use isConnected() instead. */
uint8_t active;
};
/** For rendering plug lights on cables.
Green for positive, red for negative, and blue for polyphonic.
*/


Loading…
Cancel
Save