Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
system dd 0
version dd 0
sound1 dd 0
channel dd 0
drumploop db "D:\Program Files\FMOD SoundSystem\FMOD Programmers API Windows\examples\media\drumloop.wav",0
msvcrtdll DB "msvcr100.dll",0
.code
start:
invoke InitInstance,1
;---- code here --------
invoke FMOD_System_Create,addr system
.if eax == FMOD_OK
invoke FMOD_System_GetVersion,system, addr version
.if eax == FMOD_OK
.if version < FMOD_VERSION
jmp quit_fmode
.endif
invoke FMOD_System_Init,system, 32, FMOD_INIT_NORMAL, NULL
.if eax != FMOD_OK
jmp quit_fmode
.endif
invoke FMOD_System_CreateSound,system,addr drumploop, FMOD_HARDWARE, 0,addr sound1
.if eax != FMOD_OK
jmp quit_fmode
.endif
invoke FMOD_Sound_SetMode,sound1, FMOD_LOOP_OFF
.if eax != FMOD_OK
jmp quit_fmode
.endif
invoke FMOD_System_PlaySound,system, FMOD_CHANNEL_FREE, sound1, 0, addr channel
.if eax != FMOD_OK
jmp quit_fmode
.endif
;*******************
invoke _getch
;---------------------
invoke FMOD_System_Release,sound1
.endif
.endif
quit_fmode:
;relacher les pointeurs obtenus
invoke FMOD_Sound_Release,sound1
invoke FMOD_System_Release,system