Skip to content

Various things to make it possible to run on wasm and macOS#3

Merged
heucuva merged 1 commit into
gotracker:mainfrom
eliasdaler:main
Nov 29, 2022
Merged

Various things to make it possible to run on wasm and macOS#3
heucuva merged 1 commit into
gotracker:mainfrom
eliasdaler:main

Conversation

@eliasdaler

Copy link
Copy Markdown
Contributor

Hello!

I was trying to use your libraries in a project which runs in browsers and on macOS and stumbled upon two problems which I solved:

  • Removed unsynchronized goroutine for converting samples - caused unpredictable behaviour on load
  • Used BE16ToLE16 Linux implementation on all other platforms

This also makes gotracker usable on macOS (it only converts to file, but it's something!)

* Remove unsynchronized goroutine for converting samples - caused
  unpredictable behaviour on load
* Use BE16ToLE16 Linux implementation on all other platforms
@eliasdaler

Copy link
Copy Markdown
Contributor Author

P.S. the wasm demo of it running can be seen here if you're interested.

The code can be found here

@heucuva heucuva left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good - been meaning to get rid of the converters in goroutines - thanks for the fix :)

@heucuva heucuva merged commit 901a0f2 into gotracker:main Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants