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

Play of sound always return 0. #8

Open
newMemberHub opened this issue Sep 23, 2020 · 6 comments
Open

Play of sound always return 0. #8

newMemberHub opened this issue Sep 23, 2020 · 6 comments
Assignees

Comments

@newMemberHub
Copy link

Hi support team,
After updating the oboe in libgdx 1.9.11, I tried to play the sound and it can work fine but the return of play is always 0.
Ex:
long ret1 = mySound.play(volume); // ret 1 is 0
long ret2 = mySound.play(volume); // ret 2 is 0
// both ret 1 and 2 are 0, they should be different.

@barsoosayque barsoosayque self-assigned this Jul 15, 2021
@karivatj
Copy link

I, too am facing a similar issue. The sound plays fine but without the sound Id I cannot control the sound sample like setting pitch etc. Using libGDX 1.10.0. calling play() always returns zero. If I call for example setPitch by setting the sound id manually to 1 (first audio sample) the pitch changes. Theres something wrong with returning the id back to the caller.

@karivatj
Copy link

karivatj commented Oct 7, 2021

This issue is fixed in v 0.3.0. I compiled the library manually and imported the library to my project. Sound Id works fine now. Great!

Note: Is it possible to get this release to a maven repo so I can pull the version v 0.3.0 version from there instead of building it by hand?

But anyway, thanks again for the great work!

@barsoosayque
Copy link
Owner

Yeah, sorry I didn't reply about fix in this thread. I didn't release a new version because there is currently no place to upload release artifacts, sadly (since bintray's goodbye).

There is #10 . I tried to use github packages, but to no avail :(

@barsoosayque
Copy link
Owner

Let's keep this issue until I eventually find a place to host releases.

@Giuseppe1984
Copy link

Any news about this issue? I receive id=0 too :(

@karivatj
Copy link

The fix is there. You just have to build the library yourself. Like the author said, they couldn't upload the artifact because bintray was shutdown. I got it working by building the library and linking it to my project.

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