I’m developing a simple game for the Ipaq.
I’m trying to play two samples (laser gun and explosion) but when I use FSOUND_PlaySound, the explosion plays fine, while the laser gun loops even is I loaded it with FSOUND_NORMAL.
Here’s the code:
DWORD m_dwSize = SizeofResource(hinst, rsShoot);
HGLOBAL m_hGlobal = LoadResource(hinst, rsShoot);
char * mmShoot =(char *) LockResource(m_hGlobal);
FSOUND_SAMPLE * str= FSOUND_Sample_Load(FSOUND_FREE, mmShoot,FSOUND_NORMAL | FSOUND_LOADMEMORY, m_dwSize);
Thank you in advance.
- umbacos asked 17 years ago
- You must login to post comments