EdgeMatrix.cs 435 B

12345678910111213141516171819
  1. using Ryujinx.Common;
  2. namespace Ryujinx.HLE.HOS.Services.Audio.AudioRendererManager
  3. {
  4. static class EdgeMatrix
  5. {
  6. public static int GetWorkBufferSize(int totalMixCount)
  7. {
  8. int size = BitUtils.AlignUp(totalMixCount * totalMixCount, AudioRendererConsts.BufferAlignment);
  9. if (size < 0)
  10. {
  11. size |= 7;
  12. }
  13. return size / 8;
  14. }
  15. }
  16. }