This code:
Code: Select all
#include <nds.h>
#include <stdio.h>
int main()
{
consoleDemoInit();
iprintf("Hello World!\n");
soundEnable();
int i;
for (i = 0; i < 60; i ++) swiWaitForVBlank();
soundDisable();
iprintf("Now try to close the lid!\n");
for(;;);
swiWaitForVBlank();
}
Code: Select all
void disableSound() { // libnds/source/arm7/audio.c, line 139
(...)
powerOff(POWER_SOUND);
}
EDIT: libnds/source/arm7/system.c, line 64, function powerValueHandler():
Code: Select all
swiChangeSoundBias(0,0x400);
(...)
swiChangeSoundBias(1,0x400);