-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added back toggle route posibilites.
- Loading branch information
Showing
11 changed files
with
135 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Revelator.io24.Api.Enums; | ||
|
||
namespace Revelator.io24.Api.Attributes | ||
{ | ||
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)] | ||
public class RouteNameAttribute : Attribute | ||
{ | ||
public string RouteName { get; } | ||
|
||
public RouteType RouteType { get; } | ||
|
||
public RouteNameAttribute(string routeName, RouteType routeType = RouteType.Mute) | ||
{ | ||
RouteName = routeName; | ||
RouteType = routeType; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace Revelator.io24.Api.Enums | ||
{ | ||
public enum Headphones : ushort | ||
{ | ||
//Route: "global/phonesSrc" | ||
Unknown = ushort.MaxValue, | ||
Main = 0, // 0: 0x00, 0x00, 0.0f | ||
MixA = 16128, //16128: 0x00, 0x3F, 0.5f | ||
MixB = 16256 //16256: 0x80, 0x3F, 1.0f | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace Revelator.io24.Api.Enums | ||
{ | ||
/// <summary> | ||
/// Some values has inverted On/Off state. | ||
/// This is becuase some has mute states, and some has assign states. | ||
/// IsMuted != IsAssigned | ||
/// IsMuted: Ends with /mute | ||
/// IsAssigned: Ends contains /assign_aux then a number. | ||
/// </summary> | ||
public enum RouteType | ||
{ | ||
Mute, | ||
Assign | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.