aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Horizon/Sdk/Applet
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2024-02-22 16:58:33 -0300
committerGitHub <noreply@github.com>2024-02-22 16:58:33 -0300
commitd4d0a48bfe89d6e8e12ce16829bb2c440b56007c (patch)
tree2376566ed2c06181b3dbc547b1f99f5b533d918b /src/Ryujinx.Horizon/Sdk/Applet
parent57d8afd0c99bb43d1ba1e3cc630d257c5da92741 (diff)
Migrate Audio service to new IPC (#6285)
* Migrate audren to new IPC * Migrate audout * Migrate audin * Migrate hwopus * Bye bye old audio service * Switch volume control to IHardwareDeviceDriver * Somewhat unrelated changes * Remove Concentus reference from HLE * Implement OpenAudioRendererForManualExecution * Remove SetVolume/GetVolume methods that are not necessary * Remove SetVolume/GetVolume methods that are not necessary (2) * Fix incorrect volume update * PR feedback * PR feedback * Stub audrec * Init outParameter * Make FinalOutputRecorderParameter/Internal readonly * Make FinalOutputRecorder IDisposable * Fix HardwareOpusDecoderManager parameter buffers * Opus work buffer size and error handling improvements * Add AudioInProtocolName enum * Fix potential divisions by zero
Diffstat (limited to 'src/Ryujinx.Horizon/Sdk/Applet')
-rw-r--r--src/Ryujinx.Horizon/Sdk/Applet/AppletId.cs71
-rw-r--r--src/Ryujinx.Horizon/Sdk/Applet/AppletResourceUserId.cs15
2 files changed, 86 insertions, 0 deletions
diff --git a/src/Ryujinx.Horizon/Sdk/Applet/AppletId.cs b/src/Ryujinx.Horizon/Sdk/Applet/AppletId.cs
new file mode 100644
index 00000000..2b81fbf6
--- /dev/null
+++ b/src/Ryujinx.Horizon/Sdk/Applet/AppletId.cs
@@ -0,0 +1,71 @@
+namespace Ryujinx.Horizon.Sdk.Applet
+{
+ enum AppletId : uint
+ {
+ None = 0x00,
+ Application = 0x01,
+ OverlayApplet = 0x02,
+ SystemAppletMenu = 0x03,
+ SystemApplication = 0x04,
+ LibraryAppletAuth = 0x0A,
+ LibraryAppletCabinet = 0x0B,
+ LibraryAppletController = 0x0C,
+ LibraryAppletDataErase = 0x0D,
+ LibraryAppletError = 0x0E,
+ LibraryAppletNetConnect = 0x0F,
+ LibraryAppletPlayerSelect = 0x10,
+ LibraryAppletSwkbd = 0x11,
+ LibraryAppletMiiEdit = 0x12,
+ LibraryAppletWeb = 0x13,
+ LibraryAppletShop = 0x14,
+ LibraryAppletPhotoViewer = 0x15,
+ LibraryAppletSet = 0x16,
+ LibraryAppletOfflineWeb = 0x17,
+ LibraryAppletLoginShare = 0x18,
+ LibraryAppletWifiWebAuth = 0x19,
+ LibraryAppletMyPage = 0x1A,
+ LibraryAppletGift = 0x1B,
+ LibraryAppletUserMigration = 0x1C,
+ LibraryAppletPreomiaSys = 0x1D,
+ LibraryAppletStory = 0x1E,
+ LibraryAppletPreomiaUsr = 0x1F,
+ LibraryAppletPreomiaUsrDummy = 0x20,
+ LibraryAppletSample = 0x21,
+ LibraryAppletPromoteQualification = 0x22,
+ LibraryAppletOfflineWebFw17 = 0x32,
+ LibraryAppletOfflineWeb2Fw17 = 0x33,
+ LibraryAppletLoginShareFw17 = 0x35,
+ LibraryAppletLoginShare2Fw17 = 0x36,
+ LibraryAppletLoginShare3Fw17 = 0x37,
+ Unknown38 = 0x38,
+ DevlopmentTool = 0x3E8,
+ CombinationLA = 0x3F1,
+ AeSystemApplet = 0x3F2,
+ AeOverlayApplet = 0x3F3,
+ AeStarter = 0x3F4,
+ AeLibraryAppletAlone = 0x3F5,
+ AeLibraryApplet1 = 0x3F6,
+ AeLibraryApplet2 = 0x3F7,
+ AeLibraryApplet3 = 0x3F8,
+ AeLibraryApplet4 = 0x3F9,
+ AppletISA = 0x3FA,
+ AppletIOA = 0x3FB,
+ AppletISTA = 0x3FC,
+ AppletILA1 = 0x3FD,
+ AppletILA2 = 0x3FE,
+ CombinationLAFw17 = 0x700000DC,
+ AeSystemAppletFw17 = 0x700000E6,
+ AeOverlayAppletFw17 = 0x700000E7,
+ AeStarterFw17 = 0x700000E8,
+ AeLibraryAppletAloneFw17 = 0x700000E9,
+ AeLibraryApplet1Fw17 = 0x700000EA,
+ AeLibraryApplet2Fw17 = 0x700000EB,
+ AeLibraryApplet3Fw17 = 0x700000EC,
+ AeLibraryApplet4Fw17 = 0x700000ED,
+ AppletISAFw17 = 0x700000F0,
+ AppletIOAFw17 = 0x700000F1,
+ AppletISTAFw17 = 0x700000F2,
+ AppletILA1Fw17 = 0x700000F3,
+ AppletILA2Fw17 = 0x700000F4,
+ }
+}
diff --git a/src/Ryujinx.Horizon/Sdk/Applet/AppletResourceUserId.cs b/src/Ryujinx.Horizon/Sdk/Applet/AppletResourceUserId.cs
new file mode 100644
index 00000000..00e2ad36
--- /dev/null
+++ b/src/Ryujinx.Horizon/Sdk/Applet/AppletResourceUserId.cs
@@ -0,0 +1,15 @@
+using System.Runtime.InteropServices;
+
+namespace Ryujinx.Horizon.Sdk.Applet
+{
+ [StructLayout(LayoutKind.Sequential, Size = 0x8, Pack = 0x8)]
+ readonly struct AppletResourceUserId
+ {
+ public readonly ulong Id;
+
+ public AppletResourceUserId(ulong id)
+ {
+ Id = id;
+ }
+ }
+}