Skip to content

Commit

Permalink
UHF-R & General API/Interfaces Improvements:
Browse files Browse the repository at this point in the history
 - 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
space928 committed Jun 25, 2024
1 parent 6fd6c97 commit ad1ba01
Show file tree
Hide file tree
Showing 11 changed files with 1,134 additions and 292 deletions.
13 changes: 13 additions & 0 deletions WirelessMicSuiteServer/.config/dotnet-tools.json
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
}
}
}
24 changes: 24 additions & 0 deletions WirelessMicSuiteServer/ByteMessage.cs
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);
}
}
Loading

0 comments on commit ad1ba01

Please sign in to comment.