alekmaul
Karma: 43
Posts: 152
Out of memory error
|
 |
« Reply #15 on: October 20, 2009, 09:00:52 AM » |
|
Hum, i think you can try 44100hz instead of 22Khz. To convert 8bits sounds to 16 bits, just take a look at gnuboy from joyrider, and you have the solution (it's in lib/sdl/sdl.c, in the threading function) : void a320_sound_thread_play(void *none) { int teller = 0; int teller2 = 0; signed short w; do { if(a320_sound_paused == 0) { byte * bleh = (byte *) a320_sound_buffer; for (teller = 0; teller < SNDLEN>>1; teller++) { w = (uint16_t)((gb_sound_buffer[teller] - 128) << 8 ); *bleh++ = w & 0xFF ; *bleh++ = w >> 8; } waveout_write(_audio_music, a320_sound_buffer, SNDLEN); audio_done = 1; } else OSTimeDly(1); } while(!a320_sound_thread_exit); a320_sound_thread_exit=0; OSTaskDel(TASK_START_PRIO); }
In this code, gb_sound_buffer is the 8 bits buffer filled from the emu and a320_sound_buffer is the 16 bits signed buffer sent to wave_out
|
|
|
|
|
Logged
|
|
|
|
Spiller
Karma: 28
Posts: 106
|
 |
« Reply #16 on: October 20, 2009, 09:16:05 PM » |
|
First beta can be found here: http://www.speedyshare.com/534817175.htmlPlace LynGOO.SIM together with lynxboot.img in your GAME folder and have fun with some LNX files! This version still contains several glitches and load/save state is not implemented yet. You will have to google lynxboot.img as I'm not allowed to bundle it with the emulator.
|
|
|
|
« Last Edit: October 20, 2009, 09:30:25 PM by Spiller »
|
Logged
|
|
|
|
Chris23235
Karma: 18
Posts: 221
|
 |
« Reply #17 on: October 20, 2009, 10:33:14 PM » |
|
Hope you didn't mind I made a post in the release forum, tried Blue Lightning, runs great.
EDIT: I tried S.T.U.N. Runner, runs fantastic for a Beta, has slightly wrong colours sometimes and the screen flashes at the map screen. This game runs to slow on the original CPU Speed and to fast on 430 MHz. It would be great, if you cam implement a frame limiter.
|
|
|
|
« Last Edit: October 20, 2009, 10:42:37 PM by Chris23235 »
|
Logged
|
|
|
|
remax
Karma: 2
Posts: 35
|
 |
« Reply #18 on: October 20, 2009, 11:21:48 PM » |
|
California Games runs great Ninja Gaiden seems ok but i never played it World Class Soccer is unplayable (there are big paquet of frame that are forgotten).
|
|
|
|
|
Logged
|
|
|
|
segakiki
Karma: 1
Posts: 29
|
 |
« Reply #19 on: October 21, 2009, 12:23:39 AM » |
|
Its not working for me! ive put the lyngoo.sim and the lynxboot.img file in the game folder and then created a lynx folder with all the unzipped .lnx files. nothing... No File Found! what am i doing wrong? ive got firmware version 1.1
|
|
|
|
|
Logged
|
|
|
|
Harteex
Global Moderator
Karma: 34
Posts: 222
|
 |
« Reply #20 on: October 21, 2009, 12:27:52 AM » |
|
Its not working for me! ive put the lyngoo.sim and the lynxboot.img file in the game folder and then created a lynx folder with all the unzipped .lnx files. nothing... No File Found! what am i doing wrong? ive got firmware version 1.1
Force a file refresh by doing Update Jukebox at the bottom of the Music menu.
|
|
|
|
|
Logged
|
|
|
|
segakiki
Karma: 1
Posts: 29
|
 |
« Reply #21 on: October 21, 2009, 12:38:14 AM » |
|
when i click on ok for update jukebox my dingoo just freezes and i have to hard reset! it wasnt doing this before i put the lyngoo.sim file in. Any help please?
|
|
|
|
|
Logged
|
|
|
|
Jolu42
Karma: 2
Posts: 39
|
 |
« Reply #22 on: October 21, 2009, 12:59:37 AM » |
|
Spiller, great job on the beta!! I was just playing Batman Returns whilst on the shitter. Very impressive.
|
|
|
|
|
Logged
|
William S. Sessions is currently doing well in rehabilitation.
|
|
|
capt_bugaloo
Karma: 4
Posts: 67
|
 |
« Reply #23 on: October 21, 2009, 03:14:03 AM » |
|
Awesome! I am running a black Dingoo with factory 1.11 I find the emulator works very well for most ROMs. - Blue Lightning, KLAX, and a few others I tried ran well - I didn't notice any slow down other than some choppy title music in BL. - STUN Runner has some messed up graphics. - Ms. PacMan runs about 15% too fast! - "Lynx Diagnostic cart" when you push buttons on the button test, a speaker beeps like it should but the button display doesn't light up. How do you have the keys mapped? A is A, but I think you have B mapped to X, Pause to Start..? I'd like to be able to flip the screen like on a real Lynx (Pause + OPT2) and couldn't figure it out... Awesome for a beta release! 
|
|
|
|
|
Logged
|
|
|
|
segakiki
Karma: 1
Posts: 29
|
 |
« Reply #24 on: October 21, 2009, 03:38:48 AM » |
|
Finally got it working! it was because of my 16gb sd card. i just took it out of the dingoo and clicked update jukebox and it updated without freezing! Emu works great for a first release. Does anyone know how to adjust the volume?
|
|
|
|
|
Logged
|
|
|
|
trooper
Karma: 3
Posts: 29
|
 |
« Reply #25 on: October 21, 2009, 04:15:28 AM » |
|
Finally got it working! it was because of my 16gb sd card. i just took it out of the dingoo and clicked update jukebox and it updated without freezing! Emu works great for a first release. Does anyone know how to adjust the volume?
Left shoulder button = Volume down Right shoulder button = Volume up Oh, Btw Spiller, I hope you don`t mind, And i know this is still in beta, But i have posted this as news over at GP32x.com, And uploaded it to the Openhandheld File Archive. Thanks Spiller, I`m having great fun with this.  Trooper
|
|
|
|
|
Logged
|
|
|
|
alekmaul
Karma: 43
Posts: 152
Out of memory error
|
 |
« Reply #26 on: October 21, 2009, 05:30:00 AM » |
|
Nice work Spiller, all the games i've tried work ! THere are some glitches in sound but it' not so bad. There are some pb in graphic line rendering (just take a look at shadow of the beast, the sky is not good). Also, some games seem to be emulated too fast (ms pacman for example). Continue ! nice work !!!
|
|
|
|
|
Logged
|
|
|
|
Spiller
Karma: 28
Posts: 106
|
 |
« Reply #27 on: October 21, 2009, 07:12:12 AM » |
|
Thanks for all the replies! Good to see that there is interest in this. I have never owned a Lynx myself so sometimes it's hard to judge whether a game runs correctly or not. This emulator is basicly a port of Handy. I was trying to run Handy on Windows for reference, but to my surprise it ran very slow and choppy on a 1400MHz Intel CPU. So I really have no good reference. Will take a couple of more days to fix some bugs. 
|
|
|
|
|
Logged
|
|
|
|
Spiller
Karma: 28
Posts: 106
|
 |
« Reply #28 on: October 21, 2009, 07:31:37 AM » |
|
capt_bugaloo: Didn't know about those special key combinations. Thanks! The mappings are as follows:
A = A B = B OPT1 = X OPT2 = Y PAUSE = START
PAUSE+OPT1 seems to do a reset? PAUSE+OPT2 probably tries to do a rotate, but I haven't implemented support for it.
|
|
|
|
|
Logged
|
|
|
|
Spiller
Karma: 28
Posts: 106
|
 |
« Reply #29 on: October 21, 2009, 08:22:28 AM » |
|
alekmaul: The main reason for graphical (and sound?) glitches is the lack of proper timing in the emulation speed. The only control I currently have is the number of cpu opcodes executed in one frame. Normally this number is set to 3000. When I set it to 800 for example the background in Shadow of the Beast stops flickering but it also looses the gradient. This is because the gradient is dependant on proper system timing. This will not be easy to fix, but I'll have a look.
|
|
|
|
|
Logged
|
|
|
|
|