Hi! When I play one small wav sound effect I get the ~0.2-0.3 sound delay on my HTC One. Sure I preload sound first then play when I need it. What's the fix for this?
I did some tests and can tell that playing small mp3 has much lower delay. I saw a lot of topics about that problem starting from 2012. I'm wondering why this is not fixed yet..
No, I think there will be a new sound system in Gideros 2 that will solve this problem. Hopefully...
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
There is something wrong with render to target that makes a Samsung Galaxy Fame crash. Hopefully this is fixed in the next build or 2.0 - so I'm waiting too.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
I even set the scale to no scale and back again after I've allocated the render size - still a crash on that particular phone.
Seems the phone is pretty popular too as it was a giveaway phone on a cheap Virgin tariff.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
It's not half a second - but it is a few frames. Hopefully the sound system will be changed for v2.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
@ar2rsawseen - I've noticed slight (noticable) delays (a lag, but not 30 frames worth - maybe between 8 and 16 on a Galaxy S3) and I clip the sound right to the beginning.
Maybe the sound has to be processed before being played? What sound format are you using 16-bit/8-bit/frequency/mono/stereo etc.. Which is fastest to play?
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
I'm using 22k or less, I wonder if there is some processing done to upscale them?
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Comments
I saw a lot of topics about that problem starting from 2012. I'm wondering why this is not fixed yet..
https://deluxepixel.com
So we can't release games until Gideros 2 is out?
Likes: SinisterSoft
https://deluxepixel.com
Yes, I reported that too. There are several bugs with render target..
Likes: SinisterSoft
Seems the phone is pretty popular too as it was a giveaway phone on a cheap Virgin tariff.
https://deluxepixel.com
Just got the crash after playing my game 5 min:
05-09 19:34:38.256: I/DEBUG(265): 78ae097c 78761625 /data/app-lib/com.twisty.player-2/libgideros.so (GGSoundManager::preTick()+12)
05-09 19:34:38.256: I/DEBUG(265): 78ae0980 7ddb46e8
05-09 19:34:38.256: I/DEBUG(265): 78ae0984 787617d3 /data/app-lib/com.twisty.player-2/libgideros.so (GGAudioManager::preTick()+10)
05-09 19:34:38.256: I/DEBUG(265): 78ae0988 7ab093ec
05-09 19:34:38.256: I/DEBUG(265): 78ae098c 78760343 /data/app-lib/com.twisty.player-2/libgideros.so (gevent_CallbackList::dispatchEvent(int, void*)+138)
05-09 19:34:38.256: I/DEBUG(265): #00 78ae0990 00000002
05-09 19:34:38.256: I/DEBUG(265): ........ ........
05-09 19:34:38.256: I/DEBUG(265): #01 78ae0990 00000002
05-09 19:34:38.256: I/DEBUG(265): 78ae0994 7d9bfd68
05-09 19:34:38.256: I/DEBUG(265): 78ae0998 00000438
05-09 19:34:38.256: I/DEBUG(265): 78ae099c 00000000
05-09 19:34:38.256: I/DEBUG(265): 78ae09a0 00000000
05-09 19:34:38.256: I/DEBUG(265): 78ae09a4 00000780
05-09 19:34:38.256: I/DEBUG(265): 78ae09a8 78ae0a24 [stack:9042]
05-09 19:34:38.256: I/DEBUG(265): 78ae09ac 7ab093c0
05-09 19:34:38.256: I/DEBUG(265): 78ae09b0 00000001
05-09 19:34:38.256: I/DEBUG(265): 78ae09b4 7ab093e8
05-09 19:34:38.256: I/DEBUG(265): 78ae09b8 7db80748
05-09 19:34:38.256: I/DEBUG(265): 78ae09bc 7ab093ec
05-09 19:34:38.256: I/DEBUG(265): 78ae09c0 7876a365 /data/app-lib/com.twisty.player-2/libgideros.so (GGBackgroundMediaPlayerManager::callback_s(int, void*, void*))
05-09 19:34:38.256: I/DEBUG(265): 78ae09c4 78760401 /data/app-lib/com.twisty.player-2/libgideros.so (gevent::EventManager::tick()+92)
05-09 19:34:38.256: I/DEBUG(265): #02 78ae09c8 80053598
Who knows good sound library?
Likes: SinisterSoft
But what to do with delay? I can't release game when user presses a button and hears sound in a half second.
https://deluxepixel.com
Few frames is about ~32ms, it can't be noticeable. I exactly hear long delay.
Because I don't see anything so noticeable even on my very old Android device:
https://play.google.com/store/apps/details?id=com.jenots.dummytown
https://play.google.com/store/apps/details?id=com.jenots.mashballs
https://play.google.com/store/apps/details?id=com.jenots.kickyball
https://play.google.com/store/apps/details?id=com.jenots.x2048
Maybe the sound has to be processed before being played? What sound format are you using 16-bit/8-bit/frequency/mono/stereo etc.. Which is fastest to play?
https://deluxepixel.com
https://deluxepixel.com
Seems that problem is in my HTC One :O
Tested on some older devices and it works like a charm almost without delay.