Add victory sound (#39)

This commit is contained in:
Cong
2014-11-16 23:06:55 +11:00
parent a5c2f078fc
commit 1845b269cb
3 changed files with 7 additions and 0 deletions

BIN
sounds/victory.ogg Normal file

Binary file not shown.

4
sounds/victory.txt Normal file
View File

@@ -0,0 +1,4 @@
Derived from VICTORY CRY REVERB 2.wav
by chripei
http://freesound.org/people/chripei/sounds/165491/
http://creativecommons.org/licenses/by/3.0/

View File

@@ -658,6 +658,7 @@ static void DrawObjectiveInfo(
static void VictoryDraw(void *data);
void ScreenVictory(CampaignOptions *c)
{
SoundPlay(&gSoundDevice, StrSound("victory"));
GameLoopData gData = GameLoopDataNew(
NULL, GameLoopWaitForAnyKeyOrButtonFunc,
c, VictoryDraw);
@@ -812,6 +813,7 @@ static void ShowPlayerScore(const Vec2i pos, const int score)
static void DogfightFinalScoresDraw(void *data);
void ScreenDogfightFinalScores(void)
{
SoundPlay(&gSoundDevice, StrSound("victory"));
GameLoopData gData = GameLoopDataNew(
NULL, GameLoopWaitForAnyKeyOrButtonFunc,
NULL, DogfightFinalScoresDraw);
@@ -879,6 +881,7 @@ static void DogfightFinalScoresDraw(void *data)
static void DeathmatchFinalScoresDraw(void *data);
void ScreenDeathmatchFinalScores(void)
{
SoundPlay(&gSoundDevice, StrSound("victory"));
GameLoopData gData = GameLoopDataNew(
NULL, GameLoopWaitForAnyKeyOrButtonFunc,
NULL, DeathmatchFinalScoresDraw);