Search found 11 matches

by Dren
Fri Mar 29, 2013 3:30 pm
Forum: DS/DSi Development
Topic: Tony Hawk Motion Pack with libnds
Replies: 0
Views: 8623

Tony Hawk Motion Pack with libnds

There are apparently 2 slot-2 motion peripherals, one is a third-party "motion pak", the other is the "motion pack" used with a Tony Hawk game. Are they functionally the same? If I were to buy a motion pa c k (since I can't find any motion pa k s online) would I be able to use it with libnds?
by Dren
Wed Feb 27, 2013 4:18 pm
Forum: DS/DSi Development
Topic: soundPlayX crashes randomly?
Replies: 4
Views: 9361

Re: soundPlayX crashes randomly?

I've made yet another workaround where the arm9 detects sleep mode and turns off sound emulation until sleep mode is done... so I guess this isn't an issue anymore. Hopefully it won't come back to haunt me.
by Dren
Tue Feb 26, 2013 1:30 am
Forum: DS/DSi Development
Topic: soundPlayX crashes randomly?
Replies: 4
Views: 9361

Re: soundPlayX crashes randomly?

My workaround was unsatisfactory, as it turns out. Putting it into sleep mode seems to sometimes cause the arm7 to crash, perhaps the arm9 was awake and sent too many commands while the arm7 was going into / exiting sleep? Making arm9 wait for a response again seems to fix this particular issue, but ...
by Dren
Thu Feb 14, 2013 4:50 pm
Forum: DS/DSi Development
Topic: soundPlayX crashes randomly?
Replies: 4
Views: 9361

Re: soundPlayX crashes randomly?

The sound code isn't run from an interrupt handler, it's executed when the emulated cpu writes to the corresponding registers. It all descends directly from "int main()".
I didn't know about any exception handlers. I added "defaultExceptionHander()" to the initialization routine, but there was no ...
by Dren
Thu Feb 14, 2013 1:59 pm
Forum: DS/DSi Development
Topic: soundPlayX crashes randomly?
Replies: 4
Views: 9361

soundPlayX crashes randomly?

I picked up an emulation project for the ds which I hadn't looked at in awhile. For sound emulation I needed low-level sound access. Libnds's "sound.h" functions worked fine... except when it crashed randomly. And I mean randomly ... I couldn't see any pattern to it. It could happen seconds after ...
by Dren
Sat Nov 12, 2011 2:02 pm
Forum: DS/DSi Development
Topic: Simple sound engine crashes
Replies: 5
Views: 6999

Re: Simple sound engine crashes

Ah, so it was irqInit()! I must've been reading an obsolete resource. It works fine now. Thanks!
by Dren
Fri Nov 11, 2011 9:50 pm
Forum: DS/DSi Development
Topic: Simple sound engine crashes
Replies: 5
Views: 6999

Re: Simple sound engine crashes

There isn't much I haven't said.

int main(void)
{
irqInit();
irqEnable(IRQ_VBLANK);

consoleDemoInit();
consoleDebugInit(DebugDevice_CONSOLE);

soundEnable();
while (true)
{
soundPlayPSG(DutyCycle_50, 500, 100, 64);
// Crashes here
printf("This command is never executed.\n ...
by Dren
Fri Nov 11, 2011 4:37 am
Forum: DS/DSi Development
Topic: Simple sound engine crashes
Replies: 5
Views: 6999

Simple sound engine crashes

Hi, I'm attempting to port a gameboy emulator to the ds. I'm unable to play any kind of sound with libnds's sound.h. I call soundEnable() at the beginning of my code, presumably this powers on the sound hardware? As I attempt to call a function such as soundPlayPSG and soundPlayNoise, the ds crashes ...
by Dren
Tue Mar 22, 2011 8:35 pm
Forum: DS/DSi Development
Topic: Reading gba SRAM
Replies: 4
Views: 7231

Re: Reading gba SRAM

I was afraid of that. Well thanks for the help.
by Dren
Mon Mar 21, 2011 9:10 pm
Forum: DS/DSi Development
Topic: Reading gba SRAM
Replies: 4
Views: 7231

Re: Reading gba SRAM

Oops. Well now it works, almost.
I've uploaded a save file into Final Fantasy V, but I can't yet write data to Pokemon Sapphire. As far as I can tell it uses a 1Mb flash chip. According to the nocash technical info on the gba I'm supposed to use commands instead of writing directly but none have any ...