fp: Add potential ambience and background music options

This commit is contained in:
Joshalosh 2023-11-09 08:37:08 +11:00
parent 97a83b20f6
commit d0b3ce1bd0
5 changed files with 17 additions and 2 deletions

BIN
Data/Audio/ambience_1.ogg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Data/Audio/ambience_2.ogg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Data/Audio/music_1.ogg (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -451,6 +451,9 @@ void TELY_OS_DLLInit(TELY_OS *os)
game->audio[FP_GameAudio_Woosh] = os->funcs.load_audio(assets, DQN_STR8("Woosh"), DQN_STR8("Data/Audio/woosh.ogg"));
game->audio[FP_GameAudio_GameStart] = os->funcs.load_audio(assets, DQN_STR8("Game Start"), DQN_STR8("Data/Audio/game_start.ogg"));
game->audio[FP_GameAudio_PerryStart] = os->funcs.load_audio(assets, DQN_STR8("Perry Start"), DQN_STR8("Data/Audio/perry_start.ogg"));
game->audio[FP_GameAudio_Ambience1] = os->funcs.load_audio(assets, DQN_STR8("Ambience one"), DQN_STR8("Data/Audio/ambience_1.ogg"));
game->audio[FP_GameAudio_Ambience2] = os->funcs.load_audio(assets, DQN_STR8("Ambience two"), DQN_STR8("Data/Audio/ambience_2.ogg"));
game->audio[FP_GameAudio_Music1] = os->funcs.load_audio(assets, DQN_STR8("Music one"), DQN_STR8("Data/Audio/music_1.ogg"));
// NOTE: Load sprite sheets ====================================================================
os->user_data = game;
@ -4452,9 +4455,9 @@ void TELY_OS_DLLFrameUpdate(TELY_OS *os)
TELY_Audio *audio = &os->audio;
#if 0
#if 1
if (audio->playback_size == 0) {
TELY_Audio_Play(audio, game->audio[FP_GameAudio_TestAudio], 1.f /*volume*/);
TELY_Audio_Play(audio, game->audio[FP_GameAudio_Ambience2], 1.f /*volume*/);
}
#endif

View File

@ -336,6 +336,9 @@ enum FP_GameAudio
FP_GameAudio_PortalDestroy,
FP_GameAudio_GameStart,
FP_GameAudio_PerryStart,
FP_GameAudio_Ambience1,
FP_GameAudio_Ambience2,
FP_GameAudio_Music1,
FP_GameAudio_Count,
};