-
-
Notifications
You must be signed in to change notification settings - Fork 891
Closed
Labels
hardware:audioIssues in the audio subsystemIssues in the audio subsystem
Milestone
Description
In the hardware, the envelop starts as expected, but in mGBA the envelop never starts.
Hardware -> mGBA recording
hardware_mgba.mp4
Test ROM
Code
#include <tonc.h>
int main(void) {
irq_init(NULL);
irq_enable(II_VBLANK);
REG_SNDSTAT = SSTAT_ENABLE;
REG_SNDDSCNT = SDS_DMG100;
REG_SNDDMGCNT = SDMG_LVOL(7) | SDMG_RVOL(7) | SDMG_LSQR1 | SDMG_RSQR1;
REG_SND1CNT = SSQR_IVOL(15) | SSQR_TIME(0);
REG_SND1FREQ = SFREQ_RESET | SFREQ_RATE(416);
int wait = 45;
while (1) {
if (--wait == 0)
REG_SND1CNT = SSQR_IVOL(15) | SSQR_TIME(7);
VBlankIntrWait();
}
}tolik518
Metadata
Metadata
Assignees
Labels
hardware:audioIssues in the audio subsystemIssues in the audio subsystem