working directory on streaming sound

mastering_effects
cosmonaut 2021-10-29 14:14:52 -07:00
parent c73332c3a4
commit e63252b3ba
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ function StaticSound(_staticSoundID) constructor
// Note that StreamingSounds are SoundInstances.
function LoadStreamingSound(filename)
{
var filePath = "audio\\streaming\\" + filename;
var filePath = working_directory + "audio/streaming/" + filename;
soundInstanceID = FAudioGMS_StreamingSound_LoadOGG(filePath);
return new SoundInstance(soundInstanceID);
}