I’m a new FMOD user and am using the code below to load a resource MOD file in my game. For some reason, the mod file audio plays well on my pc but when I compile for an ARM version and copy it to my device, the audio does not play?
rec = FindResource(g_hInstance, MAKEINTRESOURCE(IDM_BGMUSIC), _T(“MOD”));
handle = LoadResource(g_hInstance, rec);
data = LockResource(handle);
length = SizeofResource(g_hInstance, rec);
tm_music = FMUSIC_LoadSongMemory(data, length);
fb_MusicPlaying = FALSE;
fb_MusicPlaying = TRUE;
I placed the IF statement to check if tm_music didn’t load properly and quit my game but the game still runs without the audio playing. Any ideas how to go about this?
- You must login to post comments
Please login first to submit.