17 for (
int chaine = 0; chaine < nbrPortees; chaine++) {
40 usleep(60000000/tempo);
65 fprintf(stderr,
"Impossible de lire le fichier audio\n");
72 fprintf(stderr,
"Impossible de lire le fichier audio\n");
79 fprintf(stderr,
"Impossible de lire le fichier audio\n");
86 fprintf(stderr,
"Impossible de lire le fichier audio\n");
93 fprintf(stderr,
"Impossible de lire le fichier audio\n");
100 for (
int i = 0; i < melodie[
courant] -> nbrTmp; i++) {
102 lireTick (system, melodie[courant], i, sample, chan, nombreChaines, tempo);
107 for (
int i = 0; i <= nombreChaines; i++) {
FMOD_RESULT F_API FMOD_System_PlaySound(FMOD_SYSTEM *system, FMOD_CHANNELINDEX channelid, FMOD_SOUND *sound, FMOD_BOOL paused, FMOD_CHANNEL **channel)
int getInstrument(Motif *m, int portee, int tmp)
int getNote(Motif *m, int portee, int tmp)
struct FMOD_SOUND FMOD_SOUND
FMOD_RESULT F_API FMOD_System_CreateDSPByType(FMOD_SYSTEM *system, FMOD_DSP_TYPE type, FMOD_DSP **dsp)
FMOD_RESULT F_API FMOD_Channel_Stop(FMOD_CHANNEL *channel)
FMOD_RESULT F_API FMOD_System_Create(FMOD_SYSTEM **system)
struct FMOD_CHANNEL FMOD_CHANNEL
struct FMOD_SYSTEM FMOD_SYSTEM
FMOD_RESULT F_API FMOD_DSP_SetParameter(FMOD_DSP *dsp, int index, float value)
FMOD_RESULT F_API FMOD_System_Init(FMOD_SYSTEM *system, int maxchannels, FMOD_INITFLAGS flags, void *extradriverdata)
void lecture(int nombreChaines, int tempo, Motif *melodie[])
FMOD_RESULT F_API FMOD_Sound_Release(FMOD_SOUND *sound)
void lireTick(FMOD_SYSTEM *system, Motif *m, int tmp, FMOD_SOUND *sample[], FMOD_CHANNEL *chan[], int nbrPortees, int tempo)
FMOD_RESULT F_API FMOD_System_Release(FMOD_SYSTEM *system)
FMOD_RESULT F_API FMOD_System_Close(FMOD_SYSTEM *system)
FMOD_RESULT F_API FMOD_System_CreateStream(FMOD_SYSTEM *system, const char *name_or_data, FMOD_MODE mode, FMOD_CREATESOUNDEXINFO *exinfo, FMOD_SOUND **sound)
FMOD_RESULT F_API FMOD_Channel_AddDSP(FMOD_CHANNEL *channel, FMOD_DSP *dsp, FMOD_DSPCONNECTION **connection)