MemoryPoolUserState.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // Copyright (c) 2019-2021 Ryujinx
  3. //
  4. // This program is free software: you can redistribute it and/or modify
  5. // it under the terms of the GNU Lesser General Public License as published by
  6. // the Free Software Foundation, either version 3 of the License, or
  7. // (at your option) any later version.
  8. //
  9. // This program is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU Lesser General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU Lesser General Public License
  15. // along with this program. If not, see <https://www.gnu.org/licenses/>.
  16. //
  17. namespace Ryujinx.Audio.Renderer.Common
  18. {
  19. /// <summary>
  20. /// Represents the state of a memory pool.
  21. /// </summary>
  22. public enum MemoryPoolUserState : uint
  23. {
  24. /// <summary>
  25. /// Invalid state.
  26. /// </summary>
  27. Invalid = 0,
  28. /// <summary>
  29. /// The memory pool is new. (client side only)
  30. /// </summary>
  31. New = 1,
  32. /// <summary>
  33. /// The user asked to detach the memory pool from the <see cref="Dsp.AudioProcessor"/>.
  34. /// </summary>
  35. RequestDetach = 2,
  36. /// <summary>
  37. /// The memory pool is detached from the <see cref="Dsp.AudioProcessor"/>.
  38. /// </summary>
  39. Detached = 3,
  40. /// <summary>
  41. /// The user asked to attach the memory pool to the <see cref="Dsp.AudioProcessor"/>.
  42. /// </summary>
  43. RequestAttach = 4,
  44. /// <summary>
  45. /// The memory pool is attached to the <see cref="Dsp.AudioProcessor"/>.
  46. /// </summary>
  47. Attached = 5,
  48. /// <summary>
  49. /// The memory pool is released. (client side only)
  50. /// </summary>
  51. Released = 6
  52. }
  53. }