Stub GetAudioRenderersProcessMasterVolume and avoid blowing up the stack inside HDomains Dispose method

This commit is contained in:
gdkchan 2018-03-12 02:07:48 -03:00
parent 8cb23c133b
commit e32f27158f
2 changed files with 11 additions and 3 deletions

View file

@ -37,7 +37,7 @@ namespace Ryujinx.Core.OsHle.Handles
{
foreach (object Obj in Objects)
{
if (Obj is IDisposable DisposableObj)
if (Obj != this && Obj is IDisposable DisposableObj)
{
DisposableObj.Dispose();
}

View file

@ -15,8 +15,9 @@ namespace Ryujinx.Core.OsHle.IpcServices.Aud
{
m_Commands = new Dictionary<int, ServiceProcessRequest>()
{
{ 0, OpenAudioRenderer },
{ 1, GetAudioRendererWorkBufferSize },
{ 0, OpenAudioRenderer },
{ 1, GetAudioRendererWorkBufferSize },
{ 2, GetAudioRenderersProcessMasterVolume }
};
}
@ -47,5 +48,12 @@ namespace Ryujinx.Core.OsHle.IpcServices.Aud
return 0;
}
public long GetAudioRenderersProcessMasterVolume(ServiceCtx Context)
{
Context.ResponseData.Write(0);
return 0;
}
}
}