Help with freesd.irx

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
User avatar
ifcaro
Posts: 23
Joined: Sun Oct 19, 2008 4:11 am

Help with freesd.irx

Post by ifcaro »

In my tetris I am using the audiolib of hermes/ps2reality. When I use the module freesd.irx VAG files do not hear well while with LIBSD are heard correctly.

Anyone who knows the topic can help me?

thanks in advance
User avatar
Lukasz
Posts: 248
Joined: Mon Jan 19, 2004 8:37 pm
Location: Denmark
Contact:

Post by Lukasz »

TyRaNiD and I are the authors of freesd and it sounds like you have encountered a bug :-)

Unfortunately I don't have the time to take a look at it at the moment. So there are two options for you, either just use LIBSD or debug freesd yourself (or someone else lurking these forums does it for you). I suggest the first option :-)

Do you have a link to this audiolib source code? I might look into this bug at some point in the (distant) future.
User avatar
ifcaro
Posts: 23
Joined: Sun Oct 19, 2008 4:11 am

Post by ifcaro »

Unfortunately I think the audiolib is not open source and the only thing I have are the headers.

The reason that I want to use freesd instead of libsd is that as I tried, with freesd can run on the ps3 60GB and libsd seems that does not work. Anyway I have to confirm because I have the 40GB ps3.

I attach audiolib headers and the code that I use.

http://ps2dev.ifcaro.net/audiolib2.0.zip
Last edited by ifcaro on Tue Nov 04, 2008 11:40 pm, edited 1 time in total.
User avatar
Lukasz
Posts: 248
Joined: Mon Jan 19, 2004 8:37 pm
Location: Denmark
Contact:

Post by Lukasz »

I asked for the source so I could compile a test ELF for debugging, the lib file (.a) would also be fine. But you did not include the lib file in the zip archive.
User avatar
ifcaro
Posts: 23
Joined: Sun Oct 19, 2008 4:11 am

Post by ifcaro »

I created a sample for testing the audiolib.

http://ps2dev.ifcaro.net/audiolib_example.zip
User avatar
Lukasz
Posts: 248
Joined: Mon Jan 19, 2004 8:37 pm
Location: Denmark
Contact:

Post by Lukasz »

ifcaro wrote:I created a sample for testing the audiolib.

http://ps2dev.ifcaro.net/audiolib_example.zip
Thanks, I will probably look into this bug in the beginning of January.
User avatar
Lukasz
Posts: 248
Joined: Mon Jan 19, 2004 8:37 pm
Location: Denmark
Contact:

Post by Lukasz »

I've managed to track down and fix the bug you encountered in freesd (Subversion log).

The changes have been commited to PS2SDK, freesd now prints version 1.01. You can also download freesd.irx 1.01 from here.
User avatar
ifcaro
Posts: 23
Joined: Sun Oct 19, 2008 4:11 am

Post by ifcaro »

Thank you very much lukasz

Updated tetris to version 1.3b with the new freesd :D
Post Reply