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

Looping sound playback does not work #27

Closed
gurkenlabs opened this issue Sep 16, 2017 · 1 comment
Closed

Looping sound playback does not work #27

gurkenlabs opened this issue Sep 16, 2017 · 1 comment
Labels

Comments

@gurkenlabs
Copy link
Collaborator

There's an issue with the SoundEngine currently not supporting to loop sounds/music.
The problem is that the following method doesn't forward the loop parameter.

  public void play(final boolean loop, final Point2D location, final float gain) {
    // clip must be disposed
    if (this.dataLine != null) {
      return;
    }

    this.gain = gain;
    final PlayThread thread = new PlayThread();
    thread.start();
    this.played = true;
  }
@gurkenlabs gurkenlabs added the bug label Sep 16, 2017
@gurkenlabs
Copy link
Collaborator Author

Fixed with commit 23ce05a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants