Search found 25 matches

by PrimeTime
Fri Mar 11, 2005 7:20 am
Forum: PS2 Development
Topic: Interrupts, IRX, just some Questions.
Replies: 2
Views: 2305

Interrupts, IRX, just some Questions.

Hi, I had just a few questions. First, before I code anything, I would just like to hear if you think this could be done. I was wanting to run a program in the background during a regular ps2 game. Would it be possible to hook a small amount of code to an interrupt and then launch a ps2 elf and stil...
by PrimeTime
Thu Dec 02, 2004 11:54 pm
Forum: PS2 Development
Topic: Some help with SetAlarm()
Replies: 1
Views: 1850

Some help with SetAlarm()

Hi again, I'm having trouble finding any documentation on the EE's SetAlarm. I'm wondering if when an alarm is set, it will call it's callback function even if there is another thread currently running. Could anyone give me an example of how SetAlarm is used, or at least describe the parameters. Whe...
by PrimeTime
Thu Nov 04, 2004 8:40 pm
Forum: PS2 Development
Topic: Playstation 2 MP3 Player Source Code
Replies: 5
Views: 3389

of course, go for it
by PrimeTime
Wed Oct 13, 2004 10:49 am
Forum: PS2 Development
Topic: trying to compile ps2mp3
Replies: 11
Views: 4162

danke
by PrimeTime
Tue Oct 12, 2004 8:50 pm
Forum: PS2 Development
Topic: trying to compile ps2mp3
Replies: 11
Views: 4162

Yeah, i found the rawtoasm in the keylauncher source. I had trouble packing my graphics in using bin2s, so I used this program instead...
by PrimeTime
Tue Oct 12, 2004 11:52 am
Forum: PS2 Development
Topic: trying to compile ps2mp3
Replies: 11
Views: 4162

Thanks pixel,

I hurried the code and I knew that somewhere I would forget to do a few things...

Sorry about the non-unix compliantcy, I did do the compiling under windows.

Thanks for letting me know.

Ryan
by PrimeTime
Thu Oct 07, 2004 5:10 am
Forum: PS2 Development
Topic: Playstation 2 MP3 Player Source Code
Replies: 5
Views: 3389

rmalloc uses malloc it is just a wrapper that I used for debugging purposes. It keeps the size of all the memory I allocated with it so that I could see about how much memory my program will use at its peak. You don't even need to use rmalloc.
by PrimeTime
Tue Oct 05, 2004 7:19 pm
Forum: PS2 Development
Topic: Unloading an IOP module?
Replies: 2
Views: 2266

Unloading an IOP module?

Hi again, I was just wondering if it is possible to unload an IOP module. For example, if I loaded and executed several modules, is it possible to unload one of those while running code from the EE? I am interested in the idea of running ftpd at certain points in my EE program. Parts of the EE progr...
by PrimeTime
Tue Oct 05, 2004 6:56 am
Forum: PS2 Development
Topic: Playstation 2 MP3 Player Source Code
Replies: 5
Views: 3389

Playstation 2 MP3 Player Source Code

Here it is.

http://www.personal.psu.edu/users/r/t/r ... ojects.htm

On the bottom of the page.

Regards,
Ryan Kegel
by PrimeTime
Sun Oct 03, 2004 5:59 am
Forum: PS2 Development
Topic: Playstation 2 MP3 Player
Replies: 4
Views: 2887

Yes, much of the decoding is done with the help of madlib.

In a few days, I'm going to also release the code for my player,
I just need to unmessify it a little bit :)

Ryan
by PrimeTime
Wed Sep 29, 2004 7:44 am
Forum: PS2 Development
Topic: Playstation 2 MP3 Player
Replies: 4
Views: 2887

Playstation 2 MP3 Player

Hi,

I'm pretty new to the console dev scene, but I've finally finished
my first bit of software. It plays MP3s from CD and HDD.
If you get chance, please test it and leave some feedback.

http://www.personal.psu.edu/rtk124/PS2MP3.ZIP

Thanks alot,
Ryan
by PrimeTime
Sat Sep 11, 2004 3:58 pm
Forum: PS2 Development
Topic: reading files from CD
Replies: 6
Views: 3796

Hi, I found out that my problem was that I didn't have the LIBCDVD v1.15 library. So now that I got that, I am able to read files from the cd using fioOpen and fioRead. However, I still cannot use fileXioOpen and fileXioRead, these functions return < 0. Does anyone have any suggestions? static int f...
by PrimeTime
Sun Sep 05, 2004 6:02 am
Forum: PS2 Development
Topic: reading files from CD
Replies: 6
Views: 3796

Okay, cool. I'm using fileXio for reading from the hard drive, I just wanted to be able to use both drives without having to change the code as much. If I want to use the fileXioOpen, Read, Dread, etc... is there any special initialization that I must do? Which device name should I use rather than &...
by PrimeTime
Sat Sep 04, 2004 3:31 pm
Forum: PS2 Development
Topic: reading files from CD
Replies: 6
Views: 3796

reading files from CD

Hello, its me again I can sucessfully read files from a hard drive, and now i'm working on reading files from the CD drive. I'm running into a few problems. First, is it possible to use the fileXio library with the cd drive? Second, I'm trying the following code. cdSync&#40;0&#41;; fioOpen&a...
by PrimeTime
Tue Aug 31, 2004 3:15 am
Forum: PS2 Development
Topic: More thread stuff
Replies: 4
Views: 3608

Thanks, I understand what you mean. I realized that I wasn't really programming under an OS, so there isn't anything to schedule different threads on a ready queue. Although, this makes me curious to whether there is a way to create a scheduler thread that will sleep for a certain amount of time and...
by PrimeTime
Mon Aug 30, 2004 9:08 am
Forum: PS2 Development
Topic: More thread stuff
Replies: 4
Views: 3608

More thread stuff

Hi, some more problems. I'm running a thread to get the status of a controller. Inside the thread, if I hit UP it will decrease the thread's priority, and DOWN will increase it. After I call the thread, my main goes into a busy waiting look and prints some stuff to the screen to identify that it is ...
by PrimeTime
Sun Aug 29, 2004 5:54 pm
Forum: PS2 Development
Topic: Multi-tasking
Replies: 1
Views: 2440

Multi-tasking

Hi again, I'm having a problem with threads. What I am doing is creating and starting a thread from main() that will call a routine which in turn will create and start another thread. The first thread from main() will run a function that will open and buffer a sound file. When the buffer is full, th...
by PrimeTime
Wed Aug 25, 2004 11:02 am
Forum: PS2 Development
Topic: Streaming large PCM from the HDD
Replies: 11
Views: 5252

Well, either way, I got both the threaded and non-threaded versions
to work :)

Ryan
by PrimeTime
Mon Aug 23, 2004 3:53 pm
Forum: PS2 Development
Topic: Streaming large PCM from the HDD
Replies: 11
Views: 5252

Ah, I figured it out. I haven't used threads for the streaming yet, but I did get the file to stream correctly. My problem was that each sample is 2 bytes which is stored in one element of a short array I was treating the short array as it it were an array of 1 byte elements such as a char array. So...
by PrimeTime
Sun Aug 22, 2004 7:47 pm
Forum: PS2 Development
Topic: Streaming large PCM from the HDD
Replies: 11
Views: 5252

thats incorrect code for 2 channels :D I'm trying a mono channel right now, so i can just use the left data for both, I have re-written the algorithm, it works a little better, but once the initial buffer is empty it gets choppy. I can't find anything wrong, but its also late at night. short *sample...
by PrimeTime
Sun Aug 22, 2004 7:12 pm
Forum: PS2 Development
Topic: Streaming large PCM from the HDD
Replies: 11
Views: 5252

sorry about that, made a few typos samples1 = malloc&#40;800&#41;; scr_printf&#40;"Loading.. "&#41;; //Just some pre-loading fileXioRead&#40;fd, &#40;short*&#41;samples1, 800&#41;; for &#40;readIn = 0; readIn < 800; readIn++&#41; &#123; left&...
by PrimeTime
Sun Aug 22, 2004 5:46 pm
Forum: PS2 Development
Topic: Streaming large PCM from the HDD
Replies: 11
Views: 5252

Streaming large PCM from the HDD

Hi again, I'm trying to stream a large PCM audio file from my hard drive. I'm using the SjPCM library to help. My problem is, the sound output is very choppy. I am not sure if it is coming from reading the data from the hard drive, or transferring the data to the right and left audio channels. Here ...
by PrimeTime
Fri Aug 20, 2004 7:14 am
Forum: PS2 Development
Topic: Need help loading an ELF from an ELF :)
Replies: 8
Views: 6143

I found part of the solution to my problem: Originally, I have been uploading my ELF file via ftp. for example my program is named TEST.ELF and this program calls JPG.ELF. By default my ps2 calls PS2 Key Launcher upon booting. I configured PS2 Key Launcher to call my TEST.ELF program and then my TES...
by PrimeTime
Fri Aug 20, 2004 6:30 am
Forum: PS2 Development
Topic: Need help loading an ELF from an ELF :)
Replies: 8
Views: 6143

Thanks for your replies. I've tried using the sbv-lite library to fix the sif problem, however, it doesn't seem to work, I am still getting the same results as before. // Initialise SifInitRpc&#40;0&#41;; init_scr&#40;&#41;; hddPreparePoweroff&#40;&#41;; hddSetUserPoweroffCal...
by PrimeTime
Thu Aug 19, 2004 8:03 pm
Forum: PS2 Development
Topic: Need help loading an ELF from an ELF :)
Replies: 8
Views: 6143

Need help loading an ELF from an ELF :)

hi, I'm pretty new to this, but for the past couple of days I've been trying to load an ELF from a location on my memory card. the location of the program is mc0:/BOOT/SHARED/JPG.ELF I uploaded it there myself. my problem is whenever I call SifLoadElf() it tell me it cannot open this elf file. char ...