remove FileInfo references

main
cosmonaut 2021-01-28 18:07:48 -08:00
parent 8fd10bf008
commit 45ee65c62c
2 changed files with 5 additions and 5 deletions

View File

@ -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)
{

View File

@ -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!");