Hello I’m asking for help,
I’m trying to change volume in C (i’m using CodeBlocks) but i get this error : |error: expected declaration specifiers or ‘…’ before ‘volume’|
int MUSIQUE()
{
SDL_Event event;
int continuer = 1;
FMOD_SYSTEM *system;
FMOD_SOUND *musique;
FMOD_RESULT resultat;
FMOD_System_Create(&system);
FMOD_System_Init(system, 1, FMOD_INIT_NORMAL, NULL);
resultat = FMOD_System_CreateSound(system, "Zeze.mp3", FMOD_SOFTWARE | FMOD_2D | FMOD_CREATESTREAM, 0, &musique);
FMOD_CHANNEL *channel;
FMOD_System_GetChannel(system, 9, &channel);
if (resultat != FMOD_OK)
{
fprintf(stderr, "Impossible de lire le fichier mp3\n");
exit(EXIT_FAILURE);
}
//FMOD_System_PlaySound(system, FMOD_CHANNEL_FREE, musique, 0, NULL);
FMOD_System_PlaySound(system, FMOD_CHANNEL_FREE, musique, 0, NULL);
FMOD_RESULT FMOD_ChannelGroup_SetVolume(FMOD_CHANNELGROUP * channel, float 0.3);
}
This error is at last line with float 0.3…
I hope somebody could help me