0
0

Hello,
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.
Any idea?
Here’s the code:
HINSTANCE hinst=GethInst();
HRSRC rsShoot=FindResource(hinst,MAKEINTRESOURCE(IDR_SHOOT),TEXT(“WAVE”));
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);

FSOUND_PlaySound(FSOUND_FREE,str);

Thank you in advance.
Umbacos

  • You must to post comments
0
0

Yes, it worked.
Brett, I only need the wav playback feature, is there a feature-limited version of fmodce that only implements this basic stuff (smaller size dll)?
thx in advance

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.