Skip to content

Commit

Permalink
Merge pull request #25 from grant2258/master
Browse files Browse the repository at this point in the history
add sound files tro content path
  • Loading branch information
inactive123 committed Aug 15, 2018
2 parents a2507ae + d49829b commit 6ee0e67
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion daphne/daphne-1.0-src/sound/sound.cpp
Expand Up @@ -49,6 +49,8 @@
#include "../game/game.h"
#include "../daphne.h"
#include "../ldp-out/ldp-vldp.h" // added by JFA for -startsilent
// grant- ADD - needed for home directory
#include "../io/homedir.h"

sample_s g_samples[MAX_NUM_SOUNDS] = { { 0 } };
sample_s g_sample_saveme; // the special saveme wav which is loaded independently of any game
Expand Down Expand Up @@ -233,12 +235,16 @@ int load_waves()
Uint32 i = 0;
int result = 1;
string filename = "";



SDL_AudioSpec spec;

for (; (i < g_game->get_num_sounds()) && result; i++)
{
filename.clear();
filename = "sound/";
filename = g_homedir.get_homedir().c_str();
filename += "/sound/";
filename += g_game->get_sound_name(i);

// initialize so that shutting down succeeds
Expand Down

0 comments on commit 6ee0e67

Please sign in to comment.