working directory on streaming sound

pull/1/head
cosmonaut 2021-10-29 14:14:52 -07:00
parent 6be41108a6
commit 30e4f01d37
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);
}