-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UHF-R & General API/Interfaces Improvements:
- Moved Shure UHF-R classes into their own folder - Added more code docs to mic interfaces - Added a bunch of receiver specific properties - Many properties are now nullable - Added metering - Json serialization for some of the new structs - Ascii art metering - Added new API methods - Fixed a load of UHF-R parsing bugs - Implemented a few more UHF-R properties - Refactoring
- Loading branch information
Showing
11 changed files
with
1,134 additions
and
292 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"dotnet-ef": { | ||
"version": "8.0.6", | ||
"commands": [ | ||
"dotnet-ef" | ||
], | ||
"rollForward": false | ||
} | ||
} | ||
} |
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,24 @@ | ||
using System.Buffers; | ||
using System.Net; | ||
|
||
namespace WirelessMicSuiteServer; | ||
|
||
public readonly struct ByteMessage : IDisposable | ||
{ | ||
public readonly IPEndPoint endPoint; | ||
public readonly ArraySegment<byte> Buffer => new(buffer, 0, length); | ||
private readonly byte[] buffer; | ||
private readonly int length; | ||
|
||
public ByteMessage(IPEndPoint endPoint, int size) | ||
{ | ||
this.endPoint = endPoint; | ||
this.length = size; | ||
this.buffer = ArrayPool<byte>.Shared.Rent(size); | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
ArrayPool<byte>.Shared.Return(buffer); | ||
} | ||
} |
Oops, something went wrong.