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

Properly-formed AudioTrack instance fails instanceof check on serverless function #22

Open
agrathwohl opened this issue Mar 11, 2023 · 0 comments
Labels
bug Something isn't working research R&D is needed

Comments

@agrathwohl
Copy link

Recent work by @r-token on the walkie-talkie service has revealed a potential bug in AudioTrack, where the following instanceof operation unexpectedly fails:

const src = new Source(uri)
const at = AudioTrack.from(src)
at.ready(() => console.log(at instanceof AudioTrack))

The root cause is not presently known, as the unexpected behavior has only been found to be present in the development environment for the walkie-talkie Serverless service. Running the same code that fails on Serverless, on a local node repl directly, yields the expected true result and therefore cannot reproduce the issue.

There may be a need to dig into the way AudioTrack (and, potentially other classes) is constructed and what properties about it might cause the instanceof check to fail. There may also need to be an investigation into what aspects to lambda functions may result in this sort of behavior. We should reimplement any such discoveries to more appropriately match lambda's constraints, as this library will be expected to be used effectively within these environments.

@agrathwohl agrathwohl added bug Something isn't working research R&D is needed labels Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working research R&D is needed
Projects
None yet
Development

No branches or pull requests

1 participant