FAudio qoa API update

pull/48/head
cosmonaut 2023-05-05 15:19:35 -07:00
parent c284037c62
commit 56b33c6f9b
3 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit f065a5519fa2a1020eb971c0da66c877f2a97f18 Subproject commit aaf2568c3e5b202c5cfbd74734386e69f204482c

View File

@ -205,7 +205,7 @@ namespace MoonWorks.Audio
fileStream.ReadExactly(fileDataSpan); fileStream.ReadExactly(fileDataSpan);
fileStream.Close(); fileStream.Close();
var qoaHandle = FAudio.qoa_open_memory((char*) fileDataPtr, (uint) fileDataSpan.Length); var qoaHandle = FAudio.qoa_open_from_memory((char*) fileDataPtr, (uint) fileDataSpan.Length, 0);
if (qoaHandle == 0) if (qoaHandle == 0)
{ {
NativeMemory.Free(fileDataPtr); NativeMemory.Free(fileDataPtr);

View File

@ -23,7 +23,7 @@ namespace MoonWorks.Audio
fileStream.ReadExactly(fileDataSpan); fileStream.ReadExactly(fileDataSpan);
fileStream.Close(); fileStream.Close();
var qoaHandle = FAudio.qoa_open_memory((char*) fileDataPtr, (uint) fileDataSpan.Length); var qoaHandle = FAudio.qoa_open_from_memory((char*) fileDataPtr, (uint) fileDataSpan.Length, 0);
if (qoaHandle == 0) if (qoaHandle == 0)
{ {
NativeMemory.Free(fileDataPtr); NativeMemory.Free(fileDataPtr);