Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improves support for SM4s #336

Merged
merged 2 commits into from
Mar 9, 2023
Merged

Improves support for SM4s #336

merged 2 commits into from
Mar 9, 2023

Conversation

atruskie
Copy link
Member

@atruskie atruskie commented Mar 9, 2023

- 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
@atruskie atruskie added bug Something isn't working enhancement New feature or request area: metadata labels Mar 9, 2023
@atruskie atruskie self-assigned this Mar 9, 2023
Copy link
Member

@hudson-newey hudson-newey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just some simple file header errors caught in CI & a variable name

src/Emu/Audio/VendorExtensions.cs Outdated Show resolved Hide resolved
src/Emu/Cli/SpectreUtils.cs Outdated Show resolved Hide resolved
src/Emu/Meta.cs Outdated Show resolved Hide resolved

if (wamdData.FileStartTime is not null)
{
if (wamdData.FileStartTime.Value.Case is OffsetDateTime o)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible rename o to a more descriptive name?

I had to read the proceeding lines of code to figure out how o was used

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm this is a common convention for temporary variables that created just due to a cast. Here o it is just the cast value of wamdData.FileStartTime. However, any example of something difficult to read takes priority

Update src/Emu/Meta.cs

Update src/Emu/Audio/VendorExtensions.cs

Co-Authored-By: hudson-newey <[email protected]>
@atruskie atruskie force-pushed the sm4-high-precision branch from b5f7372 to d40c76d Compare March 9, 2023 07:44
@atruskie atruskie merged commit 0446765 into master Mar 9, 2023
@atruskie atruskie deleted the sm4-high-precision branch March 9, 2023 08:03
@elisagirola
Copy link

Hi Anthony, have you already released this change?

@atruskie
Copy link
Member Author

atruskie commented May 5, 2023

Not yet, I'm doing one more feature and then I'll release.

It was way harder than expected but it should be worth it

@elisagirola
Copy link

Awesome. Thanks Anthony. Much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: metadata bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sub-second precision in SM4
3 participants