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

Await of unmute() blocks the program #20

Open
rodion-m opened this issue Dec 9, 2020 · 3 comments
Open

Await of unmute() blocks the program #20

rodion-m opened this issue Dec 9, 2020 · 3 comments

Comments

@rodion-m
Copy link

rodion-m commented Dec 9, 2020

If we call unmute() method using await feature, it'll just block a program execution:

  void _load(String asset) async {
    await f.unmute(); // <--- HERE IS A BLOCKING METHOD
    //So, this code will not be executed:
    ByteData _byte = await rootBundle.load(asset);
    await f.prepare(sf2: _byte);
  }
@rodion-m rodion-m changed the title Await of unmute() blocks program Await of unmute() blocks the program Dec 10, 2020
@Ryan4CN
Copy link

Ryan4CN commented Jan 1, 2021

I encountered the same problem.

@mdccxv
Copy link

mdccxv commented Mar 17, 2021

This is caused by Android platform channel not returning any results.
I have submitted a PR that addresses this issue.
#28

@rodydavis
Copy link
Owner

Thanks! I'll try to get this out soon. I'm also work on the next version that uses FFI to be faster and cut down on bugs too

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

No branches or pull requests

4 participants