AudIAudioRenderer.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. namespace Ryujinx.OsHle.Objects
  2. {
  3. class AudIAudioRenderer
  4. {
  5. public static long RequestUpdateAudioRenderer(ServiceCtx Context)
  6. {
  7. long Position = Context.Request.ReceiveBuff[0].Position;
  8. //0x40 bytes header
  9. Context.Memory.WriteInt32(Position + 0x4, 0xb0); //Behavior Out State Size? (note: this is the last section)
  10. Context.Memory.WriteInt32(Position + 0x8, 0x18e0); //Memory Pool Out State Size?
  11. Context.Memory.WriteInt32(Position + 0xc, 0x600); //Voice Out State Size?
  12. Context.Memory.WriteInt32(Position + 0x14, 0xe0); //Effect Out State Size?
  13. Context.Memory.WriteInt32(Position + 0x1c, 0x20); //Sink Out State Size?
  14. Context.Memory.WriteInt32(Position + 0x20, 0x10); //Performance Out State Size?
  15. Context.Memory.WriteInt32(Position + 0x3c, 0x20e0); //Total Size (including 0x40 bytes header)
  16. for (int Offset = 0x40; Offset < 0x40 + 0x18e0; Offset += 0x10)
  17. {
  18. Context.Memory.WriteInt32(Position + Offset, 5);
  19. }
  20. return 0;
  21. }
  22. public static long StartAudioRenderer(ServiceCtx Context)
  23. {
  24. return 0;
  25. }
  26. public static long QuerySystemEvent(ServiceCtx Context)
  27. {
  28. return 0;
  29. }
  30. }
  31. }