Ou je peux trouver l´equivalent sous allegro, ( j´ai deja chercher sur le site officiel, malgres mes lacunes en anglais j´ai trouver une fonction equivalente, mais n´arrivais pas a luiliser).
Sinon dans ton tutorial pour jouer un son avec fmod chez moi la ligne :
FSOUND_SetOutPut(FSOUND_OUTPUT_DSOUND);
me fait tout sa comme erreur :
61 C:\Dev-Cpp\projet\projet pong avec son\projet pong avec son\main.cpp `FSOUND_SetOutPut´ undeclared ( first use this function)
( Each undeclared identifier is reported only once for each function it appears in.)
999 C:\Dev-Cpp\include\fmod.h too few arguments to function ` FSOUND_STREAM* FSOUND_Stream_Open(const char*, unsigned int, int, int)´
64 C:\Dev-Cpp\projet\projet pong avec son\projet pong avec son\main.cpp at this point in file
86 C:\Dev-Cpp\projet\projet pong avec son\projet pong avec son\main.cpp [Warning] `textprintf_centre´ is deprecated ( declared at
C:/Dev-Cpp/include/allegro/alcompat.h:190)
C:\Dev-Cpp\projet\projet pong avec son\projet pong avec son\Makefile.win [Build Error]
[main.o] Error 1
Et si j´enelve cette ligne ces a celle la que se trouve les erreurs
g = FSOUND_Stream_Open("./son.wav");
qui sont celle ci
999 C:\Dev-Cpp\include\fmod.h too few arguments to function ` FSOUND_STREAM* FSOUND_Stream_Open(const char*, unsigned int, int, int)´
999 C:\Dev-Cpp\include\fmod.h too few arguments to function ` FSOUND_STREAM* FSOUND_Stream_Open(const char*, unsigned int, int, int)´
86 C:\Dev-Cpp\projet\projet pong avec son\projet pong avec son\main.cpp [Warning] `textprintf_centre´ is deprecated ( declared at C:/Dev-Cpp/include/allegro/alcompat.h:190)
C:\Dev-Cpp\projet\projet pong avec son\projet pong avec son\Makefile.win [Build Error] [main.o] Error 1
en me pointant sur une ligne de fmod.H
DLL_API FSOUND_STREAM * F_API FSOUND_Stream_Open(const char *name_or_data, unsigned int mode, int offset, int length);