mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 09:35:27 +00:00
Update new informations in IAudioOut (#19)
* Update new informations in IAudioOut * Update IAudioOut.cs
This commit is contained in:
parent
1bfe6a9c22
commit
b3e47b5712
|
@ -101,17 +101,17 @@ namespace Ryujinx.OsHle.Objects.Aud
|
||||||
|
|
||||||
KeysQueue.Enqueue(BufferId);
|
KeysQueue.Enqueue(BufferId);
|
||||||
|
|
||||||
byte[] AudioOutBuffer = AMemoryHelper.ReadBytes(Context.Memory, Context.Request.SendBuff[0].Position, 0x28);
|
byte[] AudioOutBuffer = AMemoryHelper.ReadBytes(Context.Memory, Context.Request.SendBuff[0].Position, sizeof(long) * 5);
|
||||||
using (MemoryStream MS = new MemoryStream(AudioOutBuffer))
|
using (MemoryStream MS = new MemoryStream(AudioOutBuffer))
|
||||||
{
|
{
|
||||||
BinaryReader Reader = new BinaryReader(MS);
|
BinaryReader Reader = new BinaryReader(MS);
|
||||||
long PointerToSampleDataPointer = Reader.ReadInt64();
|
long PointerNextBuffer = Reader.ReadInt64();
|
||||||
long PointerToSampleData = Reader.ReadInt64();
|
long PointerSampleBuffer = Reader.ReadInt64();
|
||||||
long CapacitySampleBuffer = Reader.ReadInt64();
|
long CapacitySampleBuffer = Reader.ReadInt64();
|
||||||
long SizeDataSampleBuffer = Reader.ReadInt64();
|
long SizeDataInSampleBuffer = Reader.ReadInt64();
|
||||||
long Unknown = Reader.ReadInt64();
|
long OffsetDataInSampleBuffer = Reader.ReadInt64();
|
||||||
|
|
||||||
byte[] AudioSampleBuffer = AMemoryHelper.ReadBytes(Context.Memory, PointerToSampleData, (int)SizeDataSampleBuffer);
|
byte[] AudioSampleBuffer = AMemoryHelper.ReadBytes(Context.Memory, PointerSampleBuffer + OffsetDataInSampleBuffer, (int)SizeDataInSampleBuffer);
|
||||||
|
|
||||||
if (OpenALInstalled)
|
if (OpenALInstalled)
|
||||||
{
|
{
|
||||||
|
@ -146,7 +146,8 @@ namespace Ryujinx.OsHle.Objects.Aud
|
||||||
|
|
||||||
AMemoryHelper.WriteBytes(Context.Memory, Context.Request.ReceiveBuff[0].Position, BitConverter.GetBytes(TempKey));
|
AMemoryHelper.WriteBytes(Context.Memory, Context.Request.ReceiveBuff[0].Position, BitConverter.GetBytes(TempKey));
|
||||||
|
|
||||||
Context.ResponseData.Write((int)TempKey);
|
int ReleasedBuffersCount = 1;
|
||||||
|
Context.ResponseData.Write(ReleasedBuffersCount);
|
||||||
|
|
||||||
if (OpenALInstalled)
|
if (OpenALInstalled)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue