devkitPro / libctru

Homebrew development library for Nintendo 3DS/Horizon OS user mode (Arm11)
https://libctru.devkitpro.org/
773 stars 170 forks source link

Mic example crashes on load #173

Closed videah closed 4 years ago

videah commented 9 years ago

Running the mic example on my N3DS causes "Init success" to be printed to the console, then crashes.

kbowen99 commented 9 years ago

Compiled and ran perfectly fine on my O3DS with ThemeHax 2.5, it may be an issue with the N3DS... Are you on *Hax 2.5?

Lectem commented 9 years ago

The MIC example was just updated, can you try it @VideahGams ? If it works please close the issue

yellows8 commented 9 years ago

What exploit(s) have you all tried this with on New3DS?

yellows8 commented 9 years ago

And New3DS + menuhax?

EDIT: If this works then this issue probably isn't New3DS-only at all.

Lectem commented 9 years ago

Works fine on new3ds 9.9E with menuhax

Cruel commented 9 years ago

Perhaps this is the reason?

https://github.com/smealum/ctrulib/blob/great-refactor/examples/audio/mic/source/main.c#L16

If I'm not mistaken, the args are swapped.

And well, I guess it depends whether you're using master branch or not.

WinterMute commented 8 years ago

@Cruel yes, you're mistaken. See http://linux.die.net/man/3/memalign

Cruel commented 8 years ago

@WinterMute I should've linked to the specific commit. It was already fixed.