PDA

View Full Version : SDL 1.2.9 for the DS for latest devkitARM/libnds r20



GPF
June 15th, 2007, 21:46
The SDL port based off of SDL 1.2.9

todo:
add ds console specific features/optimizations
mouse/keyboard support
dual screen support

included is an arm9/arm7 template to allow for sound streaming support.

Updated 6/15/07 with streaming sound support for latest devkitARM and libnds r20.

Download source or precompiled libs/headers and arm7/arm9 template from
http://gpf.dcemu.co.uk/ndsSDL.shtml

Enjoy, fix the source and share :)
Troy Davis(GPF)
http://gpf.dcemu.co.uk/

XioN980
June 16th, 2007, 03:04
awesome :D Awesome to the max :cool:

This could probably help race eh? we can enable sdl :D

GPF
June 16th, 2007, 04:51
awesome :D Awesome to the max :cool:

This could probably help race eh? we can enable sdl :D

Nope, I removed SDL in the ds port to speed it up a couple of fps.

Troy(GPF)

Sektor
July 10th, 2007, 22:22
I compiled zlib 1.2.3 for DS.

edit: Link removed/obsolete. Best to use portlibs (http://devkitpro.org/wiki/portlibs).

GPF
July 12th, 2007, 08:06
I updated zlib to 1.2.3
http://gtamp.com/DS/NDSzlib-1.2.3.rar

Thanks I have updated my lib page with the new version.
http://gpf.dcemu.co.uk/ndsSDL.shtml

Troy(GPF)

Wasser
July 24th, 2007, 11:44
Is there a tutorial somewhere as to how to get it working? I have been looking over the examples but they weren't very helpfull.

I would like to start with getting both screens to work, I'm already using devkitPro.

Thnx in advance,
Wasser

Sektor
July 24th, 2007, 22:18
SDL 1.2.9 only supports a single screen.

edit: SDL 1.3 supports dual screen and touch input.

Sektor
September 1st, 2007, 09:07
Dopefish made some updates to DS SDL
http://vespenegas.com/rott.html

hiperbou
August 8th, 2008, 18:31
I'm having problems using SDL_image...
When trying to load an image with IMG_LoadTyped_RW or IMG_LoadXXX_RW it just crashes.. It only works when loading a bmp...
it looks that there is a problem when using libpng, libjpg or libz, but I can't find it...

I'm using devkitARM r23b

Sektor
August 8th, 2008, 18:48
I never really used DS SDL_image. I don't think it was finished.

hiperbou
August 15th, 2008, 16:28
Well.. and what about SDL_mixer?? does it play anything? I've tried with a wav file but doesn't seems to work...
Edit: Debugging a bit I found that it freezes when calling SDL_BuildAudioCVT from Mix_LoadWAV_RW

GPF
August 17th, 2008, 08:22
Well.. and what about SDL_mixer?? does it play anything? I've tried with a wav file but doesn't seems to work...
Edit: Debugging a bit I found that it freezes when calling SDL_BuildAudioCVT from Mix_LoadWAV_RW

did you build your project with the template? http://gpf.dcemu.co.uk/files/nds/SDL-1.2.9DS061507src.rar

ds SDL requires a custom arm7 core to have sound enabled.

Troy(GPF)
also the latest ds SDL version is part of libsdl.org for the last couple releases, I need to update my site about that.

hiperbou
August 19th, 2008, 20:38
Yes, I'm using the template.
The makefile.ds isn't included on the official SDL sources, but I've compiled it and it seems that sound is working (I need to test it on the real hardware, because it sounds weird on the emus).
Thanks for your replies!

hiperbou
August 23rd, 2008, 17:12
I just get weird sounds, using wavs or mod files... I have to initialize the librarie in some particular way?
I'm using with sound_freq=22050, or 11025 but got the same bad results...
Mix_OpenAudio (SOUND_FREQ,MIX_DEFAULT_FORMAT, 2,1024*SOUND_FREQ/22050)

EDIT:
Got it working with Mix_OpenAudio (11025, AUDIO_S8, 1,4096);
This means that no stereo panning can be used?

REEDIT:
I still got some "clicks" both on music and fx :(

It seems that if you play a sound, when it finishes playing, randomly keeps repeating noise or clicks for an undefined time. If you play a music on the background it does not happen.
It's annoying if you don't need a music to be played...