Exemplo n.º 1
0
void init_sounds(void)
{
#ifdef USE_SOUND
    //FMOD_RESULT result;
    if (fmod_init()) {
        printf("ERROR - fmod_init()\n\n");
        return;
    }
    if (fmod_createsound("./sounds/Intro Quack.mp3", 0)) {
        printf("ERROR - fmod_createsound()\n\n");
        return;
    }
    if (fmod_createsound("./sounds/KillingJokeIntro.mp3", 1)) {
        printf("ERROR - fmod_createsound()\n\n");
        return;
    }
    if (fmod_createsound("./sounds/PunchSoundEffect.mp3", 2)) {
        printf("ERROR - fmod_createsound()\n\n");
        return;
    }
    fmod_setmode(0,FMOD_LOOP_NORMAL);
    fmod_playsound(0);
    //fmod_systemupdate();
#endif //USE_SOUND
}
Exemplo n.º 2
0
void init_sounds(void)
{
#ifdef USE_SOUND
    //FMOD_RESULT result;
    if (fmod_init()) {
        printf("ERROR - fmod_init()\n\n");
        return;
    }
    if (fmod_createsound("./sounds/Intro Quack.mp3", 0)) {
        printf("ERROR - fmod_createsound()\n\n");
        return;
    }
    if (fmod_createsound("./sounds/Wasted.mp3", 1)) {
        printf("ERROR - fmod_createsound()\n\n");
        return;
    }
    if (fmod_createsound("./sounds/PunchSoundEffect.mp3", 2)) {
        printf("ERROR - fmod_createsound()\n\n");
        return;
    }
    if (fmod_createsound("./sounds/Coin.mp3", 3)) {
        printf("ERROR - fmod_createsound()\n\n");
        return;
    }
    if (fmod_createsound("./sounds/Restart.wav", 4)) {
        printf("ERROR - fmod_createsound()\n\n");
        return;
    }
    fmod_setmode(0,FMOD_LOOP_NORMAL);
    /*if(!gameover)
        fmod_playsound(0);*/
    //fmod_systemupdate();
#endif //USE_SOUND
}
Exemplo n.º 3
0
//---------------------------------------------------
void init_sounds(void)
{
#ifdef USE_SOUND
    //FMOD_RESULT result;
    if (fmod_init()) {
	std::cout << "ERROR - fmod_init()\n" << std::endl;
	return;
    }
    if (fmod_createsound((char *)"./sounds/gunshot.wav", 0)) {
	std::cout << "ERROR - fmod_createsound()\n" << std::endl;
	return;
    }
    if (fmod_createsound((char *)"./sounds/startgame.mp3", 1)) {
	std::cout << "ERROR - fmod_createsound()\n" << std::endl;
	return;
    }
    if (fmod_createsound((char *)"./sounds/startround.mp3", 2)) {
	std::cout << "ERROR - fmod_createsound()\n" << std::endl;
	return;
    }
    if (fmod_createsound((char *)"./sounds/intro.mp3", 3)) {
	std::cout << "ERROR - fmod_createsound()\n" << std::endl;
	return;
    }
    if (fmod_createsound((char *)"./sounds/doglaugh.mp3", 4)) {
	std::cout << "ERROR - fmod_createsound()\n" << std::endl;
	return;
    }
    if (fmod_createsound((char *)"./sounds/drop.mp3", 5)) {
	std::cout << "ERROR - fmod_createsound()\n" << std::endl;
	return;
    }
    if (fmod_createsound((char *)"./sounds/endround.mp3", 6)) {
	std::cout << "ERROR - fmod_createsound()\n" << std::endl;
	return;
    }
    if (fmod_createsound((char *)"./sounds/bark.mp3",7)) {
	std::cout << "ERROR - fmod_createsound()\n" << std::endl;
	return;
    }
    if (fmod_createsound((char *)"./sounds/land.mp3",8)) {
	std::cout << "ERROR - fmod_createsound()\n" << std::endl;
	return;
    }
    if (fmod_createsound((char *)"./sounds/quack.mp3",9)) {
	std::cout << "ERROR - fmod_createsound()\n" << std::endl;
	return;
    }



    fmod_setmode(0,FMOD_LOOP_OFF);
    //fmod_playsound(0);
    //fmod_systemupdate();
#endif //USE_SOUND
}
Exemplo n.º 4
0
void init_sounds(void)
{
    if(fmod_init()) {
	printf("ERROR");
	return;
    }
    if(fmod_createsound((char *)"./sounds/10 Arpanauts.mp3", 0)) {
	printf("ERROR");
	return;
    }
    fmod_setmode(0,FMOD_LOOP_NORMAL);
}
Exemplo n.º 5
0
//---------------------------------------------------
void init_sounds(void)
{
#ifdef USE_SOUND
    //FMOD_RESULT result;
    if (fmod_init()) {
        std::cout << "ERROR - fmod_init()\n" << std::endl;
        return;
    }
    if (fmod_createsound((char *)"./sounds/gunshot.wav", 0)) {
        std::cout << "ERROR - fmod_createsound()\n" << std::endl;
        return;
    }
    if (fmod_createsound((char *)"./sounds/drip.mp3", 1)) {
        std::cout << "ERROR - fmod_createsound()\n" << std::endl;
        return;
    }
    fmod_setmode(0,FMOD_LOOP_OFF);
    //fmod_playsound(0);
    //fmod_systemupdate();
#endif //USE_SOUND
}
Exemplo n.º 6
0
void init_sounds(void)
{
	#ifdef USE_SOUND
	//FMOD_RESULT result;
	if (fmod_init()) {
		printf("ERROR - fmod_init()\n\n");
		return;
	}
	if (fmod_createsound("./sounds/tick.wav", 0)) {
		printf("ERROR - fmod_createsound()\n\n");
		return;
	}
	if (fmod_createsound("./sounds/drip.wav", 1)) {
		printf("ERROR - fmod_createsound()\n\n");
		return;
	}
	fmod_setmode(0,FMOD_LOOP_OFF);
	//fmod_playsound(0);
	//fmod_systemupdate();
	#endif //USE_SOUND
}
Exemplo n.º 7
0
void create_sounds() {
#ifdef USE_SOUND
    if(fmod_init()) {
	printf("ERROR");
	return;
    }
    if(fmod_createsound((char *)"./sounds/Highly_Suspicious.mp3", 0)) {
	printf("ERROR");
	return;
    }
    fmod_setmode(0, FMOD_LOOP_NORMAL);
#endif
}