Search found 15 matches
- June 21st, 2016, 1:00 am
- Forum: Input/Output
- Topic: MemCard problem?
- Replies: 8
- Views: 13481
Re: MemCard problem?
...file size of every file must be divisible by 2048 bytes (2 KB) or else the CD wont load on the actual machine? Is that true? Is this also true, or will this code (for length of file ceiled to the nearest factor of 2048) eliminate that issue if I use it for read length: [C]/* num = actual length ...
- June 21st, 2016, 12:45 am
- Forum: Input/Output
- Topic: MemCard problem?
- Replies: 8
- Views: 13481
Re: MemCard problem?
I also have an another question. Is there any way to check if the memory card is in the slot, or if it requires formatting (and also how to format it). Sony has some examples for that. Thank, I've just found some myself. Also I was wondering (unrelated to this topic) does the CD-ROM have some limit...
- June 21st, 2016, 12:01 am
- Forum: Input/Output
- Topic: MemCard problem?
- Replies: 8
- Views: 13481
Re: MemCard problem?
Nevermind, I solved it. Turns out I forgot the brackets, which was setting the file descriptor to -1... [C]if ((fd = open( fname, O_WRONLY )) == -1) if (write( fd, (unsigned char*)data->ptr, 8192 * blocks) != (8192 * blocks)[/C] I also have an another question. Is there any way to check if the memor...
- June 20th, 2016, 11:02 pm
- Forum: Input/Output
- Topic: MemCard problem?
- Replies: 8
- Views: 13481
Re: MemCard problem?
anyone?
- June 20th, 2016, 1:50 am
- Forum: Input/Output
- Topic: MemCard problem?
- Replies: 8
- Views: 13481
MemCard problem?
I'm trying to write some data onto the memory card, and I've followed the etc\makecard example in the PSYQ, lib, properly initializing the memory card, as well as properly opening it with open(...), etc.. Everything according to that example. For writing, I'm just using the Crash Bandicoot PAL file ...
- June 11th, 2016, 12:55 am
- Forum: Sound/SPU
- Topic: CDDA help, please?
- Replies: 0
- Views: 22316
CDDA help, please?
I cannot find much about it in the Reference PDF or the examples folder (only some SCEE example, which lacks the audio file and therefore I was unable to test it). I'd like to know how to convert audio to said format, how to properly play it via PSYQ (or PSXSDK), and how to properly create an ISO im...
- June 9th, 2016, 4:14 am
- Forum: Programming/CPU
- Topic: Custom fonts?
- Replies: 6
- Views: 12801
Re: Custom fonts?
You can take a look at my PadTest for the font routine. It's not the best one because each letter is a sprite but it does the job. Ideally you should use a VRAM 2 VRAM copy function to construct whole paragraph and then create 1 sprite and place it in the framebuffer. That's how MGS does it for sub...
- June 8th, 2016, 6:15 am
- Forum: Programming/CPU
- Topic: Custom fonts?
- Replies: 6
- Views: 12801
Re: Custom fonts?
Found my own mistake (I think). Turns out I should have drawn after each sprite. I also have an another question: How many sprites can I draw per frame (does it depend on the primitives table size, or something else).
- June 8th, 2016, 6:01 am
- Forum: Programming/CPU
- Topic: Custom fonts?
- Replies: 6
- Views: 12801
Custom fonts?
How do you guys do your custom fonts? I've tried creating one big TIM image (font), then drawing a sprite for each character (same sprite instance), but the emulator breaks when I draw more than 4 characters. EDIT: PSXSDK void printText(char* text, unsigned char x, unsigned char y) { unsigned char i...
- June 8th, 2016, 3:01 am
- Forum: Examples (Other SDK)
- Topic: PSXSDK question?
- Replies: 5
- Views: 23289
Re: PSXSDK question?
I doubt there is XA/streaming support in PSXSDK at all. You're better off using the PsyQ SDK if you want to take full advantage of the PSX. I know, but I find the PSYQ documentation very difficult, since it doesn't seem to be very informative (it assumes you know everything about PS hardware). Anyw...
- June 8th, 2016, 2:16 am
- Forum: Examples (Other SDK)
- Topic: PSXSDK question?
- Replies: 5
- Views: 23289
PSXSDK question?
Does it support XA audio. I didn't find anything in the Doxygen Documentation. If yes, is there any example or can you say which functions I have to use.
Also unrelated question: is there any way to convert MIDIs to .mod?
Also unrelated question: is there any way to convert MIDIs to .mod?
- June 7th, 2016, 9:51 am
- Forum: Sound/SPU
- Topic: VAG (or alternative) Audio Playback HELP NEEDED!
- Replies: 7
- Views: 19813
Re: VAG (or alternative) Audio Playback HELP NEEDED!
Thanks for being patient with me.Shadow wrote:Thanks. Give me a few minutes whilst I fix it all up...
*EDIT*
Okay this code is a mess. It's going to take me a few hours to clean it up.
Check back in a few hours.
- June 7th, 2016, 8:39 am
- Forum: Sound/SPU
- Topic: VAG (or alternative) Audio Playback HELP NEEDED!
- Replies: 7
- Views: 19813
Re: VAG (or alternative) Audio Playback HELP NEEDED!
Here, sorry for (relatively) late response, I had to power on my virtual machine
- June 7th, 2016, 8:33 am
- Forum: Sound/SPU
- Topic: VAG (or alternative) Audio Playback HELP NEEDED!
- Replies: 7
- Views: 19813
Re: VAG (or alternative) Audio Playback HELP NEEDED!
I actually used that as an reference when writing my code, but it doesn't work for me for some reason. Is there any extra procedure while building a BIN image with VAG-s?Shadow wrote:Enjoy: http://www.psxdev.net/forum/viewtopic.php?f=64&t=153
- June 7th, 2016, 8:22 am
- Forum: Sound/SPU
- Topic: VAG (or alternative) Audio Playback HELP NEEDED!
- Replies: 7
- Views: 19813
VAG (or alternative) Audio Playback HELP NEEDED!
I ran into problems when attempting to play VAG audio file in my game. I'm using PSYQ, the VAG file is valid, and I'm using PSX CD-Gen Tool to generate a ROM image. Here are parts of code which I used: ... eData newrDara; eAudio newAud; eReadCDFile("\\SND01.VAG;1", &newrDara); while (e...