Fix GetAudioRenderersProcessMasterVolume which was totally wrong

This commit is contained in:
gdkchan 2018-03-12 16:29:06 -03:00
parent e32f27158f
commit d88b5c7621
3 changed files with 80 additions and 6 deletions

View file

@ -1,3 +1,4 @@
using Ryujinx.Core.OsHle.Handles;
using Ryujinx.Core.OsHle.Ipc;
using System.Collections.Generic;
@ -15,9 +16,9 @@ namespace Ryujinx.Core.OsHle.IpcServices.Aud
{
m_Commands = new Dictionary<int, ServiceProcessRequest>()
{
{ 0, OpenAudioRenderer },
{ 1, GetAudioRendererWorkBufferSize },
{ 2, GetAudioRenderersProcessMasterVolume }
{ 0, OpenAudioRenderer },
{ 1, GetAudioRendererWorkBufferSize },
{ 2, GetAudioDevice }
};
}
@ -49,9 +50,11 @@ namespace Ryujinx.Core.OsHle.IpcServices.Aud
return 0;
}
public long GetAudioRenderersProcessMasterVolume(ServiceCtx Context)
public long GetAudioDevice(ServiceCtx Context)
{
Context.ResponseData.Write(0);
long UserId = Context.RequestData.ReadInt64();
MakeObject(Context, new IAudioDevice());
return 0;
}