Page 1 of 1

[N9H26 Non-OS] How to set SPU audio volume or sampling rate?

Posted: 17 Apr 2020, 14:07
by 9chuckyoung

Code: Select all

/* set SPU volume and sampling rate */
//
// in AVI player, firmware will set sampling rate automatically
//
spuOpen(eDRVSPU_FREQ_44100);
//
// max: 100
//
spuIoctl(SPU_IOCTL_SET_VOLUME, 100, 100);
SPU sample code is in BSP: \N9H26_emWin_NonOS-master\BSP\SampleCode\SPU
AVI sample code is in BSP: \N9H26_emWin_NonOS-master\BSP\SampleCode\AVI