diff --git a/StaticSound.cs b/StaticSound.cs index 664b5be..b27a952 100644 --- a/StaticSound.cs +++ b/StaticSound.cs @@ -16,9 +16,9 @@ namespace MoonWorks.Audio private bool IsDisposed; - public static StaticSound LoadOgg(AudioDevice device, FileInfo fileInfo) + public static StaticSound LoadOgg(AudioDevice device, string filePath) { - var filePointer = FAudio.stb_vorbis_open_filename(fileInfo.FullName, out var error, IntPtr.Zero); + var filePointer = FAudio.stb_vorbis_open_filename(filePath, out var error, IntPtr.Zero); if (error != 0) { diff --git a/StreamingSoundOgg.cs b/StreamingSoundOgg.cs index 9bec539..49c9ad9 100644 --- a/StreamingSoundOgg.cs +++ b/StreamingSoundOgg.cs @@ -18,12 +18,12 @@ namespace MoonWorks.Audio private bool IsDisposed; public static StreamingSoundOgg Load( - AudioDevice device, - FileInfo fileInfo, + AudioDevice device, + string filePath, bool is3D = false, bool loop = false ) { - var fileHandle = FAudio.stb_vorbis_open_filename(fileInfo.FullName, out var error, IntPtr.Zero); + var fileHandle = FAudio.stb_vorbis_open_filename(filePath, out var error, IntPtr.Zero); if (error != 0) { Logger.LogError("Error opening OGG file!");