barsoosayque / libgdx-oboe

🎶 libGDX audio replacement for Android (API 16+) built on top of Oboe.
MIT License
54 stars 10 forks source link

Play of sound always return 0. #8

Open newMemberHub opened 3 years ago

newMemberHub commented 3 years ago

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.

karivatj commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

Giuseppe1984 commented 1 year ago

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

karivatj commented 1 year ago

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.