aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Aud/IAudioRendererManager.cs
diff options
context:
space:
mode:
authoremmauss <emmausssss@gmail.com>2018-10-07 18:12:11 +0300
committerThomas Guillemard <thog@protonmail.com>2018-10-07 17:12:11 +0200
commit625fc8c0e0f7a10bbdabe86f9cc86b16d1a62be3 (patch)
treea0f8d488a0b918226460a738689ca7c005cbfbba /Ryujinx.HLE/HOS/Services/Aud/IAudioRendererManager.cs
parentcaa181edf2c956a1433d3c2f8678231af52f9dad (diff)
Stubs Again (#439)
* stub/implement audren commands * stub ISelfController get/set IdleTimeDetectonExtension * stub irs * add irs logclass, stub mmu:u irequest 1 * style fixes, addressed comments
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Aud/IAudioRendererManager.cs')
-rw-r--r--Ryujinx.HLE/HOS/Services/Aud/IAudioRendererManager.cs25
1 files changed, 20 insertions, 5 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Aud/IAudioRendererManager.cs b/Ryujinx.HLE/HOS/Services/Aud/IAudioRendererManager.cs
index 7ebe2b58..7859e013 100644
--- a/Ryujinx.HLE/HOS/Services/Aud/IAudioRendererManager.cs
+++ b/Ryujinx.HLE/HOS/Services/Aud/IAudioRendererManager.cs
@@ -3,6 +3,7 @@ using Ryujinx.HLE.HOS.Ipc;
using Ryujinx.HLE.HOS.Services.Aud.AudioRenderer;
using Ryujinx.HLE.Logging;
using Ryujinx.HLE.Utilities;
+using System;
using System.Collections.Generic;
using static Ryujinx.HLE.HOS.ErrorCode;
@@ -28,9 +29,10 @@ namespace Ryujinx.HLE.HOS.Services.Aud
{
m_Commands = new Dictionary<int, ServiceProcessRequest>()
{
- { 0, OpenAudioRenderer },
- { 1, GetAudioRendererWorkBufferSize },
- { 2, GetAudioDevice }
+ { 0, OpenAudioRenderer },
+ { 1, GetAudioRendererWorkBufferSize },
+ { 2, GetAudioDeviceService },
+ { 4, GetAudioDeviceServiceWithRevisionInfo }
};
}
@@ -161,13 +163,26 @@ namespace Ryujinx.HLE.HOS.Services.Aud
return Result / 8;
}
- public long GetAudioDevice(ServiceCtx Context)
+ // GetAudioDeviceService(nn::applet::AppletResourceUserId) -> object<nn::audio::detail::IAudioDevice>
+ public long GetAudioDeviceService(ServiceCtx Context)
{
- long UserId = Context.RequestData.ReadInt64();
+ long AppletResourceUserId = Context.RequestData.ReadInt64();
MakeObject(Context, new IAudioDevice(Context.Device.System));
return 0;
}
+
+ // GetAudioDeviceServiceWithRevisionInfo(nn::applet::AppletResourceUserId, u32) -> object<nn::audio::detail::IAudioDevice>
+ private long GetAudioDeviceServiceWithRevisionInfo(ServiceCtx Context)
+ {
+ long AppletResourceUserId = Context.RequestData.ReadInt64();
+ int RevisionInfo = Context.RequestData.ReadInt32();
+
+ Context.Device.Log.PrintStub(LogClass.ServiceAudio, $"Stubbed. AppletResourceUserId: {AppletResourceUserId} - " +
+ $"RevisionInfo: {RevisionInfo}");
+
+ return GetAudioDeviceService(Context);
+ }
}
}