-
Notifications
You must be signed in to change notification settings - Fork 2
Audio Plays Repeatedly (unlike Gosu) #14
Comments
About 1) that is intentional, since loading times on phones is significantly higher than on PCs I think that it is better not to wait for the song to be loaded and start the game as soon as possible. Does it makes sense to you? About 2), that happens because I did not fully implemented all possible song combinations ( start, stop, start again, ..) taking into account android media player different states. But simply that you could at least load one song and start/stop it. I know it is not best coding practice sorry for that. I'll definitely fix that soon enough. |
@neochuky it would be really useful to be able to tell when a sound sample ends. That would enable a lot of other behaviours (like not starting when it's playing) from a wrapper class. Would that be easier than what you have? Don't worry about coding practices. Following the 80/20 rule, you did 20% of the work and got 80% of what people need. I'm just looking at what I, specifically, need, which may be different from what other people need. |
Is this possible to do on the original Gosu gem? If so how? |
I'm not sure. I thought I was using the original Gosu for audio, but I remembered that Gosu uses OpenAL, which doesn't work on Windows XP. I was actually testing it against a different library (probably fmod), which is why the whole issue is invalid and unimportant. So I closed it. Please feel free to disregard :) I still thing the second point might be a bug, or something to improve in future releases, but it's not a problem for me right now, anyway. |
So I finally got OpenAL (and by extension, Gosu) audio to work, after months of trying this and that. Now I've verified that the second issue (audio plays repeatedly) is an issue, so I'm reopening this. I'm not in a hurry to get this closed, and I am pushing my own architectural direction (keep |
Ping :) |
I am so sorry, but I have got engaged in other projects so I am not going to develop gosu-android in the foreseeable future. |
Hi,
I noticed two distinct differences between Gosu and android-gosu.
MainWindow.initialize
, gosu freezes with the game not loaded or displaying anything, while gosu-android starts the game and the sound loads later.draw
orupdate
I callsound.play
(I know, I know, it's crazy), gosu waits until the sound finishes before restarting it (normal looping). gosu-android stops and restarts, so it sounds like the first fractional second of the sound is stuck.The first issue is not really a problem (where's my Ruboto loading screen?!), but I would like to resolve the second issue. I'll take a look at the code tonight if I can, and see if it's easy to do so. Please confirm if that change is okay with you :)
@neochuky
The text was updated successfully, but these errors were encountered: