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

Post Reply
9chuckyoung
Posts: 94
Joined: 28 Jan 2019, 13:49

17 Apr 2020, 14:07

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

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests