gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > New DS Libs -> PA_Libs

#42130 - YaW - Fri May 06, 2005 2:29 pm

Hi,
There are a new DS libs called PA_libs, chek out:
http://membres.lycos.fr/existepas/PA/

_________________
Sorry for my english ><

#42260 - Mollusk - Sun May 08, 2005 6:05 pm

Hi everyone

I don't post here often, but I'm the current main programmer of the PA_lib. Just so things are clear, I know some people just don't like it, because you're a step away from the hardware... It is in no way similar to ndslib, it even uses it...
It's main point is to be similar to Ham, actually, in that you don't need to know too much on the hardware to be able to use. So for now, it has basic 2d functions (for sprites, backgrounds, touch pad, and sound in a few hours...).

Concerning the website given, you should first download the PA.zip, which is a complete template containing the lib, based on Joat's template... Tested to work on DS, but apparently doesn't work with the latest version of ndslib, I'll check that now.
PA_lib.zip is just a package to update the template, with just the lib files and not the whole template.

A website is currently in the works, should be up soon.

Oh,a nd there's an IRC channel, even though we're not much on it yet : #PA_lib

#42275 - BMcC - Sun May 08, 2005 9:54 pm

It looks like solid work so far, keep it up!

It's nice of you to write English docs, too.

How close are you guys really to sound?
_________________
<3,
BMcC

#42278 - Mollusk - Sun May 08, 2005 10:05 pm

real close :p

It's currently working using ndslib for the sound, 16 channels seem to work, play and stop sounds, set the volume. I made an a structure array in RAM, the arm9 functions write to that array to tell which sounds and channels to use, and the arm7 checks it during every VBL to update the sounds.

I'm currently waiting for the template generating .nds files to work proporly (compiles but gives a blank screen over here, even with the base template given in ndslib) to update the template file. I hope to have it up tomorrow...

#42294 - The 9th Sage - Mon May 09, 2005 3:13 am

Mollusk wrote:

It's currently working using ndslib for the sound, 16 channels seem to work, play and stop sounds, set the volume. I made an a structure array in RAM, the arm9 functions write to that array to tell which sounds and channels to use, and the arm7 checks it during every VBL to update the sounds


Wow, I hadn't heard of anyone being this close to mod/SNES-type sampled music tracks yet (as opposed to streaming audio). Very cool. :)
_________________
Now with 20% More Old Man from Zelda 1 than ever before!

#42298 - BMcC - Mon May 09, 2005 3:44 am

Yeah, this is all very exciting!

How efficient is this going to be, do you think?
_________________
<3,
BMcC

#42302 - jstart - Mon May 09, 2005 5:29 am

got really close to compiling a demo with a mac had some trouble loading the arm9 library but i will fix that later. I get to right before the arm9.bin is made anyidea why it won't load the the nds library?
/Developer/devkitARM/bin/../lib/gcc/arm-elf/3.4.3/../../../../arm-elf/bin/ld: cannot find -l/Developer/ndslib/lib/libnds9.a
collect2: ld returned 1 exit status
make[2]: *** [/Users/nathan/Desktop/PA/PASound/arm9/arm9.elf] Error 1
make[1]: *** [build] Error 2
make: *** [all] Error 2
is what i get after making the arm7.bin
anyway...
This is really cool that a new nds library is being made! Do you think it could continue to support macs unlike ham like with ported image and sound tools and stuff?
_________________
-=Jstart=-

#42313 - Mollusk - Mon May 09, 2005 6:39 pm

Quote:
Do you think it could continue to support macs unlike ham like with ported image and sound tools and stuff?

Well, this is only a lib, so just bits of code... so you can be on mac, windows, or linux, it doesn't change anything. Ham contained not only a lib, but also a dev environnement with Visual Ham and all the compiling stuff, so that would reduce it portability... Ham also contained tools for conversions, PA_lib probably won't, except of the author of each tool feels like letting me do it...

On PC, de ndslib lib is contained in c:/ndsdev/ndslib, I think the makefile looks for it at that location... not sure if with that info you can get it to work :(

#42314 - dovoto - Mon May 09, 2005 6:54 pm

I have mod play back working (not very good play back mind you). THere is a demo on my site from a week or so ago. As soon as i have some time to look at it and fix a few things i will clean it up and release the source.

As for templates not working i believe i fixed that this weekend. Be sure and update your lib from the cvs and re-run the install batch. Apperantly the ndstool got updated but not the linker/crt.
_________________
www.drunkencoders.com

#42315 - Mollusk - Mon May 09, 2005 7:00 pm

ok, thanks dovoto.

I'm sure I had the latest version, updated a few times to check that... The linker/crt could be a problem, would it not work if I don't have the latest files generated by ndslib ? (I only have the ndsdev ones for now, I'll upadte manually...)

#42317 - Mollusk - Mon May 09, 2005 7:35 pm

Weird...

With the linker scripts updated, any project I compile is 24MB ! Any idea why ?? :(

#42318 - DekuTree64 - Mon May 09, 2005 8:32 pm

dovoto wrote:
I have mod play back working (not very good play back mind you). THere is a demo on my site from a week or so ago. As soon as i have some time to look at it and fix a few things i will clean it up and release the source.


I'm doing a port of the MOD player I made while writing my sound tutorial series too. Blows up right now, but the code is mostly there with loading from a standard .mod file (so you can just append them with your favorite file system), and a simple command buffer for ARM9 to send messages.

Dovoto, I'm a little curious how you planned to handle memory allocation for sound... I'm just using a dedicated lump of memory, and loading song data in stack-like fashion. Works fine for music, but I can't think how to handle SFX without either using a memory manager, or having them all loaded all the time.
_________________
___________
The best optimization is to do nothing at all.
Therefore a fully optimized program doesn't exist.
-Deku

#42321 - Mollusk - Mon May 09, 2005 9:04 pm

Nice to see different people working on mod players :D

Just a small post to ask if some coders could be interested in joining the project... It's always nice to have other coders add some code :p

#42890 - Hawky - Mon May 16, 2005 7:09 am

The library is great an makes life much easier to a newbie like me. But I don' t get my files to work on a real DS though they work on Dualis emulator.
Anyone any ideas please ???
Which version of ndslib do I have to use?

#42891 - Mollusk - Mon May 16, 2005 7:11 am

You should use the latest version of ndslib, and start out with the the PA template.

#42894 - Hawky - Mon May 16, 2005 9:25 am

It seems that something' s wrong with the makefile, loader.bin or the dsbuild.exe in ndslib, because after I created the .nds.gba manually (You just got to prepend an NDS loader to the file and it will become a PassMe version.
For example, get http://darkfader.net/ds/files/ndsmall.bin
(note, this one doesn't provide a callback for filesystem calls yet. working on that)
Then you can do:
cat ndsmall.bin mydemo.nds > mydemo.ds.gba
or
copy /b ndsmall.bin + mydemo.nds mydemo.ds.gba
Thanks to Darkfader!!!) my files no work fine on a real DS!

#46601 - GPFerror - Mon Jun 27, 2005 10:20 pm

Mollusk wrote:
You should use the latest version of ndslib, and start out with the the PA template.


where can i download the PA_lib template? I have the latest PA_0.41a working with the modplayer example, but don't know how to start a new project :)

Also is there any plan to make the PA_lib a library .a ?

Thanks,
Troy

#46624 - Mollusk - Tue Jun 28, 2005 8:25 am

The lib is the template... So just rename the folder and change de main.cpp in the arm9, and you're good to go ! I hope to have a .a this week, I just need a little time to do it :)

#46626 - Mollusk - Tue Jun 28, 2005 9:52 am

Man, I just **** at makefiles ! I have code that compiles to libPA7.a and libPA9.a, but can't seem to get that to work on a template :(

#46640 - GPFerror - Tue Jun 28, 2005 3:21 pm

Mollusk wrote:
The lib is the template... So just rename the folder and change de main.cpp in the arm9, and you're good to go ! I hope to have a .a this week, I just need a little time to do it :)


Well I finally read through the code and docs and figured that out last night, had to edit the code and makefile to get it to compile for libnds, since Im not using ndslib.

Got my first little demo running on dualis, just the touchscreen keyboard and letter typing on the top screen, but still very cool to me. :)

I registered at your forums http://teamnnc.free.fr/html//modules.php?name=Forums now so Ill start reading through the information over there

Troy