GP2X F200 Test


Cheers for that.

That's interesting - just one "set rate error" now??

So it's still using OSS on F100 & F200 - that destroyed my possible define DIGI_OSS solution ;)

So the "Set rate error" is definitely generated by the audio driver - will have to grep the 4.0.0 kernel source to find where the problem lies then - job for tomorrow I'm afraid.

This is so annoying as I was trying to put the finishing touches to my game - which even I find fun to play even after all the testing I've done :D - now I've got distracted by this..
 
No, there is always a "set rate error" loop until the GP2x is powered off in both tests.
 
Oh - hadn't realised it was looping - that's good information.

When I get to work today I will have a look at the kernel sources wrt OSS - that string's got to be in there somewhere - I'm sure it will all become clear very soon.
(Remote debugging is a slow method but I think we're getting there - probably). :)

EDIT:
Okay - learnt one thing - don't use windows search for looking for strings...!! It didn't find it.
Copied to my laptop and used grep -R and found "Set error rate" in ac97_codec.c ...
so .. bit busy (work) but I'll have a look at what it's doing (can now see why it's looping forever :)) and compare with 2.1.0 version...

Looking hopefully close to problem (something to do with AV97_PCM_DAC_RATE) and thus hopefully a solution.

**Anyone know if the sound hardware is the same F100/F200 ???
 
Can some one try this please:

Create a text file in the same folder as abdtest.gpe called allegro.cfg
in that file past the following:
CODE
[sound]
sound_freq=22050

Now try and see if there's any improvement on the F200 - sorry busy so can't even try this on F100 at the moment...

Either way, can you post the log.

EDIT:
Just tested on F100 -- and the dac frequency output (normally) without the allegro,cfg file is.. 45454Hz
due to: "With the SB driver, possible rates are 11906 (any), 16129 (any), 22727 (SB 2.0 and above), and 45454 (only on SB 2.0 or SB16, not the stereo SB Pro driver)." - this works fine on F100, but not on F200 by the looks of it....

If 22050 works then edit allegro.cfg and try 44100 to allow max quality..(?) - both values work on my F100..

What I'll do in time is (if this solves things) is to sort out and release my allegro lib with 44100 as the default; then anything built from now on will be F100/200 compatible.
 
Success! Well done, kevcal.
Both frequencies work.

CODE
Allegro: ./src/sound.c - install_sound(), Line 307
Allegro: ./src/sound.c - install_sound(), Line 314
Allegro: ./src/sound.c - install_sound(), Line 320
Allegro: ./src/sound.c - install_sound(), Line 324
Allegro: ./src/sound.c - install_sound(), Line 333
Allegro: ./src/sound.c - install_sound(), Line 336
Allegro: ./src/sound.c - install_sound(), Line 339
Allegro: ./src/sound.c - install_sound(), Line 344
Allegro: ./src/sound.c - install_sound(), Line 348
Allegro: ./src/sound.c - install_sound(), Line 352
Allegro: ./src/sound.c - install_sound(), Line 356
Allegro: ./src/sound.c - install_sound(), Line 360
Allegro: ./src/sound.c - install_sound(), Line 363
Allegro: ./src/sound.c - install_sound(), Line 366
Allegro: ./src/sound.c - install_sound(), Line 373
Allegro: ./src/sound.c - install_sound(), Line 379
Allegro: ./src/sound.c - install_sound(), Line 399
AVAILABLE AUDIO DRIVERS
#0 id=4f535344 Open Sound System
Allegro: ./src/sound.c - install_sound(), Line 410
Trying AUDIO DRIVER #0, 4f535344
Allegro: ./src/sound.c - install_sound(), Line 426
Allegro: ./src/sound.c - install_sound(), Line 432
Allegro: ./src/sound.c - install_sound(), Line 441
Allegro: ./src/sound.c - install_sound(), Line 449
Allegro: ./src/sound.c - install_sound(), Line 454
Allegro: ./src/sound.c - install_sound(), Line 476
Allegro: ./src/sound.c - install_sound(), Line 480
Allegro: ./src/sound.c - install_sound(), Line 500
Allegro: ./src/sound.c - install_sound(), Line 507
Allegro: ./src/sound.c - install_sound(), Line 525
Allegro: ./src/sound.c - install_sound(), Line 538
Allegro: ./src/sound.c - install_sound(), Line 551
Allegro: ./src/sound.c - install_sound(), Line 565
Allegro: ./src/sound.c - install_sound(), Line 569
Allegro: ./src/sound.c - install_sound(), Line 585
Allegro: ./src/sound.c - install_sound(), Line 599
Allegro: ./src/sound.c - install_sound(), Line 606
Allegro: ./src/sound.c - install_sound(), Line 611
Allegro: ./src/sound.c - install_sound(), Line 614
abdtest.cc - main(), Line 351
PLAYING samples/test_22050hz.wav
STOPPED samples/test_22050hz.wav
PLAYING samples/test_16000hz.wav
STOPPED samples/test_16000hz.wav
PLAYING samples/test_16500hz.wav
STOPPED samples/test_16500hz.wav


Regards,
Stephan
 
So what is the fix? LiquidWar2x, BunkerMaster2x and GravityForce2X all use Allegro so I'd like to make sure they all run.

I know there's a problem with LiquidWar2x and BunkerMaster2x. Anyone with an F200 tried GravityForce2X?
 
Cheers Stephan! BTW did the modfile work okay?

Okay, quick fix is so all allegro games from F100 work on F200 -
Create allegro.cfg in the xxx.gpe folder with following contents:
CODE
[sound]
sound_freq=44100

and that's it.

Alternatively we could chuck it in /etc and then all allegro programs will pick it up (recommend for open2x?)

My game will be using a fixed static allegro lib that won't need this.
If people want I'll release my lib with the fix for people to use in future..?

It's been a painful journey - but worth it :D
 
QUOTE
Anyone with an F200 tried GravityForce2X?


Hi Parkydr.

GravityForce don't work. Same as the other programs:


CODE
Set rate error




QUOTE
BTW did the modfile work okay?


Yes, it is OK.


Regards,
Stephan
 
sbock said:
QUOTE
Anyone with an F200 tried GravityForce2X?
Hi Parkydr.

Same as the other allegro programs:


CODE
Set rate error



Cheers.

@kevcal - I'm using libdumb - does this have any effect on the frequency I can use in al_start_duh? ( I want to use 11025 because libdumb is causing some of the performance problems in BunkerMaster2x).
 
Last edited by a moderator:
Err.. can you not copy the allegro.cfg to the gravityforce folder and see if it sorts it?

I use libdumb but use 22050Hz.. which Stephan informs mw works :)
Try the allegro.cfg but use 11025 for soundfreq - if that works, then libdumb should be okay.
Sorry can't test it myself - unless someone wants to donate an F200 :D

Otherwise use 22050 but downgrading the 'quality' may give you some mileage..?
 
kevcal said:
Err.. can you not copy the allegro.cfg to the gravityforce folder and see if it sorts it?
I can't - I haven't got an F-200 :) But that's what I'd do though.

If I'm re-releasing BunkerMaster2X, I want to put some performance improvements in which include lowering the frequency to 11025 as libdumb is part of the problem.
 
Last edited by a moderator:
Sorry, that was aimed at Stephan :)

Try dumb_resampling_quality variable if you can't do 11025.
I would guess 11025 is possible - maybe 16000 and 16500 now work so try those as 11025 sounds pretty bad...

I'm so happy that I can now get back to 'playtesting' :D
 
Just tested BunkerMaster and GravityForce with kevcals fixfile @22050 Hz.
Both games worked.

Good work, kevcal!

Regards,
Stephan
 
Thankyou, and thanks very much to all who helped :)

Expect a new F100/F200 compatible homebrew release in the next week or so now..

PS. I'd set the speed to 44100Hz personally - but be interesting if it gives performance increase by lowering it... ;)

As an aside... was Stella fixed?

For interest:
 
kevcal said:
Thankyou, and thanks very much to all who helped :)

Expect a new F100/F200 compatible homebrew release in the next week or so now..

PS. I'd set the speed to 44100Hz personally - but be interesting if it gives performance increase by lowering it... ;)

As an aside... was Stella fixed?

For interest:




@kevcal

The chap who emailed me about o2em_gp2x has emailed to say that creating an allegro.cfg file didn't help, is there more to it than just the file?

allegro is statically linked in o2em_gp2x, I'm guessing that is the problem?

Would it be prossible for you email me a copy of your fixed allegro lib and I'll recompile o2em_gp2x with it, the chap is chomping at the bit so it will be a good test of the lib on an F200.

Cheers
 
Last edited by a moderator:
My games are all statically linked. Is the allegro.cfg file in the right place? It has to be in the same directory as the executable itself, not the script that starts it.

I tested it on my F100 by setting the frequency to 1234, which screwed up the sound, so I knew it was in the right place.
 
BunkerMaster works with 110025, 22050, and 44100. But I think 44100 is way to much and results in slowdowns.
No problems with the settings on a F-100 noticed, so it is compatible for both handhelds.

Rafkill also works with the fix. (Tested 22050)

I have no luck with LiquidWar, OE2em and Stella, yet. :(

Regards,
Stephan
 
There's something funny about LiquidWar, I set the frequency to a stupid value, but it still sounds the same - I'll have a look at the code to see what the difference is.
 
Stephan,

LiquidWar overrides the standard config file using set_config_file().

Try adding the parameters to the end of lwdata/.liquidwarrc
 
Back
Top