Welcome
Welcome to a320

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

[EMULATOR]ColeCOO Version 3.0

Only for posting new releases of Dingoo OS based software.

Moderator: Moderators

Re: [EMULATOR]ColeCOO Version 3.0

Postby alekmaul on Mon Sep 28, 2009 12:38 pm

yes, you're right, the sound is a little late regarding gameplay.
That's a little bug with threads, i really don't know actually how can i change that ... It's better than during my tests, because with last implementation, i lost some sounds.
I know where is the pb but i don't know to resolve it with dingoo, sorry ... My knowledge of UCOS II OS is not so good :( ...
Actually, sounds are just late ...
Well, we can say that's a little reason to have another update one day ^^
alekmaul
 
Posts: 51
Joined: Sat Jun 06, 2009 7:16 am
Location: France

Re: [EMULATOR]ColeCOO Version 3.0

Postby joyrider on Mon Sep 28, 2009 8:34 pm

i know why it lags, just had the same problem with gnuboy while experimenting a bit. it's because your sound buffer is too big alekmaul. Try reducing it and the sound shouldn't lag anymore ;)
joyrider
 
Posts: 77
Joined: Sun May 03, 2009 4:27 pm

Re: [EMULATOR]ColeCOO Version 3.0

Postby remax on Mon Sep 28, 2009 10:43 pm

alekmaul wrote:Yes, i also fixed pb in smsGGOO.


Great, did you upload the update?
remax
 
Posts: 11
Joined: Sat Sep 12, 2009 8:31 pm

Re: [EMULATOR]ColeCOO Version 3.0

Postby MythomizeR on Tue Sep 29, 2009 1:10 am

Thanks guy.
User avatar
MythomizeR
 
Posts: 20
Joined: Sun Aug 16, 2009 12:57 pm
Location: Qvixote's Earth

Re: [EMULATOR]ColeCOO Version 3.0

Postby alekmaul on Tue Sep 29, 2009 5:19 am

joyrider wrote:i know why it lags, just had the same problem with gnuboy while experimenting a bit. it's because your sound buffer is too big alekmaul. Try reducing it and the sound shouldn't lag anymore ;)

ok, i will try with a 512 bytes sound buffer. Thanks for the tip.
But it's a shame to not have a function to know how long can be such thing ... The Dingoo is really poor in sound management ...
alekmaul
 
Posts: 51
Joined: Sat Jun 06, 2009 7:16 am
Location: France

Re: [EMULATOR]ColeCOO Version 3.0

Postby joyrider on Tue Sep 29, 2009 11:25 am

hey alekmaul, 512 might be a bit low although i guess it depends on the system, how much where you using before that ? i know i experimented quite a bit with gnuboy and it seems the optimal settings i found for it was 4096 bytes for mono sound and 8192 for stereo (double the size) with a sample rate of 44100 using a single buffer. you should experiment a bit with the buffer settings. I also noticed that if you don't use 44100 as a samplerate it will be very slow (my guess is that they convert it). Which will affect fps, (you should experiment a bit).

If i used 10240 in gnuboy with mono sound the sound was lagging and falling behind actuall gameplay. Thats why i think your buffer size was too high (i'm also just using a single buffer though so not sure if it makes a diffrence)
joyrider
 
Posts: 77
Joined: Sun May 03, 2009 4:27 pm

Re: [EMULATOR]ColeCOO Version 3.0

Postby alekmaul on Tue Sep 29, 2009 11:43 am

ouch, very strange, i'm using actually 1024 bytes each time i send something with waveout_write.
But i'm at 22050.
I will try to change regarding your information.
alekmaul
 
Posts: 51
Joined: Sat Jun 06, 2009 7:16 am
Location: France

Re: [EMULATOR]ColeCOO Version 3.0

Postby joyrider on Tue Sep 29, 2009 1:03 pm

hey alekmaul, i wasn't refering to the number of bytes you write using waveout_write but to the buffer total size (the one you init for the emulator)
if i read your code (here : sound-threading-t1197-10.html#p11049 correctly) your actually not using 1024 bytes but 16*MAXFRAGSIZE which in total would be 16384 and explain the sound lag !
try to define MAXFRAGSIZE as 256 (if it's mono sound) or 512 (if it's stereo your outputting). It should fix it :) (just test it out a bit)
joyrider
 
Posts: 77
Joined: Sun May 03, 2009 4:27 pm

Re: [EMULATOR]ColeCOO Version 3.0

Postby alekmaul on Tue Sep 29, 2009 1:06 pm

Ok, so i understood exactly the problem, we're talking about the same thing ^^
i will try to write 256 bytes instead of 1024.
alekmaul
 
Posts: 51
Joined: Sat Jun 06, 2009 7:16 am
Location: France

Re: [EMULATOR]ColeCOO Version 3.0

Postby joyrider on Tue Sep 29, 2009 1:37 pm

ah ok wasn't sure :) also note i'm using one single buffer of 4096 bytes, which i'm writing at once using waveout_write (not a bufferarray with 16 smaller buffers) i,'m not sure if it would change anything though hehe :)

Too bad i'm at work would love to work some more on gnuboy ^^

see ya later :)
joyrider
 
Posts: 77
Joined: Sun May 03, 2009 4:27 pm

PreviousNext

Return to Dingoo OS Releases

Who is online

Users browsing this forum: No registered users and 1 guest