-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Adds high precision timer support for SM4s. Fixes #330 - Adds support for microphone sensitivity reporting for Sm4s partially addressed #331 - Adds make, model, and sensor name for SM4. Partially addresses #296 - BREAKING change: resets channel identifier to match industry standard. i.e. the first channel is 0 (left). We were counting from 1 which is not the most popular format: https://en.wikipedia.org/wiki/Surround_sound#Channel_notation - BREAKING: Fixed a bug with the Location parsing code! Coordinates from WA sensors will now report the correct hemisphere
- Loading branch information
Showing
32 changed files
with
695 additions
and
325 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
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,20 @@ | ||
// <copyright file="Vendor.cs" company="QutEcoacoustics"> | ||
// All code in this file and all associated files are the copyright and property of the QUT Ecoacoustics Research Group. | ||
// </copyright> | ||
|
||
namespace Emu.Audio | ||
{ | ||
public static class VendorExtensions | ||
{ | ||
public static string ToNiceName(this Vendor vendor) | ||
{ | ||
return vendor switch | ||
{ | ||
Vendor.FrontierLabs => "Frontier Labs", | ||
Vendor.WildlifeAcoustics => "Wildlife Acoustics", | ||
Vendor.OpenAcoustics => "Open Acoustics", | ||
_ => "Unknown", | ||
}; | ||
} | ||
} | ||
} |
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
65 changes: 65 additions & 0 deletions
65
src/Emu/Audio/Vendors/WildlifeAcoustics/WAMD/SubChunkId.cs
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,65 @@ | ||
// <copyright file="SubChunkId.cs" company="QutEcoacoustics"> | ||
// All code in this file and all associated files are the copyright and property of the QUT Ecoacoustics Research Group. | ||
// </copyright> | ||
|
||
namespace Emu.Audio.Vendors.WildlifeAcoustics.WAMD | ||
{ | ||
using System.Runtime.Serialization; | ||
|
||
// from wa_meta.h | ||
public enum SubChunkId : ushort | ||
{ | ||
[EnumMember(Value = "METATAG_VERSION")] | ||
Version = 0x0000, | ||
[EnumMember(Value = "METATAG_DEV_MODEL")] | ||
DevModel = 0x0001, | ||
[EnumMember(Value = "METATAG_DEV_SERIAL_NUM")] | ||
DevSerialNum = 0x0002, | ||
[EnumMember(Value = "METATAG_SW_VERSION")] | ||
SwVersion = 0x0003, | ||
[EnumMember(Value = "METATAG_DEV_NAME")] | ||
DevName = 0x0004, | ||
[EnumMember(Value = "METATAG_FILE_START_TIME")] | ||
FileStartTime = 0x0005, | ||
[EnumMember(Value = "METATAG_GPS_FIRST")] | ||
GpsFirst = 0x0006, | ||
[EnumMember(Value = "METATAG_GPS_LAST")] | ||
GpsTrack = 0x0007, | ||
[EnumMember(Value = "METATAG_SOFTWARE")] | ||
Software = 0x0008, | ||
[EnumMember(Value = "METATAG_LICENSE_ID")] | ||
LicenseId = 0x0009, | ||
[EnumMember(Value = "METATAG_USER_NOTES")] | ||
UserNotes = 0x000A, | ||
[EnumMember(Value = "METATAG_AUTO_ID")] | ||
AutoId = 0x000B, | ||
[EnumMember(Value = "METATAG_ID_MANUAL")] | ||
ManualId = 0x000C, | ||
[EnumMember(Value = "METATAG_VOICE_NOTE")] | ||
VoiceNote = 0x000D, | ||
[EnumMember(Value = "METATAG_AUTO_ID_STATS")] | ||
AutoIdStats = 0x000E, | ||
[EnumMember(Value = "METATAG_TIME_EXPANSION")] | ||
TimeExpansion = 0x000F, | ||
[EnumMember(Value = "METATAG_DEV_PARAMS")] | ||
DevParams = 0x0010, | ||
[EnumMember(Value = "METATAG_DEV_RUNSTATE")] | ||
DevRunstate = 0x0011, | ||
[EnumMember(Value = "METATAG_MIC_TYPE")] | ||
MicType = 0x0012, | ||
[EnumMember(Value = "METATAG_MIC_SENSITIVITY")] | ||
MicSensitivity = 0x0013, | ||
[EnumMember(Value = "METATAG_POS_FIRST")] | ||
PosLast = 0x0014, | ||
[EnumMember(Value = "METATAG_TEMP_INT")] | ||
TempInt = 0x0015, | ||
[EnumMember(Value = "METATAG_TEMP_EXT")] | ||
TempExt = 0x0016, | ||
[EnumMember(Value = "METATAG_HUMIDITY")] | ||
Humidity = 0x0017, | ||
[EnumMember(Value = "METATAG_LIGHT")] | ||
Light = 0x0018, | ||
[EnumMember(Value = "METATAG_PRESSURE")] | ||
Padding = 0xFFFF, | ||
} | ||
} |
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,63 @@ | ||
// <copyright file="Wamd.cs" company="QutEcoacoustics"> | ||
// All code in this file and all associated files are the copyright and property of the QUT Ecoacoustics Research Group. | ||
// </copyright> | ||
|
||
namespace Emu.Audio.Vendors.WildlifeAcoustics.WAMD | ||
{ | ||
using Emu.Models; | ||
using LanguageExt; | ||
using NodaTime; | ||
|
||
public record Wamd | ||
{ | ||
public ushort Version { get; init; } | ||
|
||
public string DevModel { get; init; } | ||
|
||
public string DevSerialNum { get; init; } | ||
|
||
public string SwVersion { get; init; } | ||
|
||
public string DevName { get; init; } | ||
|
||
public Either<OffsetDateTime, LocalDateTime>? FileStartTime { get; init; } | ||
|
||
public Location GpsFirst { get; init; } | ||
|
||
public string GpsTrack { get; init; } | ||
|
||
public string Software { get; init; } | ||
|
||
public string LicenseId { get; init; } | ||
|
||
public string UserNotes { get; init; } | ||
|
||
public string AutoId { get; init; } | ||
|
||
public string ManualId { get; init; } | ||
|
||
public string VoiceNote { get; init; } | ||
|
||
public string AutoIdStats { get; init; } | ||
|
||
public ushort? TimeExpansion { get; init; } | ||
|
||
public string DevParams { get; init; } | ||
|
||
public string DevRunstate { get; init; } | ||
|
||
public string[] MicType { get; init; } | ||
|
||
public double[] MicSensitivity { get; init; } | ||
|
||
public Location PosLast { get; init; } | ||
|
||
public double? TempInt { get; init; } | ||
|
||
public double? TempExt { get; init; } | ||
|
||
public double? Humidity { get; init; } | ||
|
||
public double? Light { get; init; } | ||
} | ||
} |
Oops, something went wrong.