IHardwareDeviceSession.cs 541 B

12345678910111213141516171819202122232425262728
  1. using Ryujinx.Audio.Common;
  2. using System;
  3. namespace Ryujinx.Audio.Integration
  4. {
  5. public interface IHardwareDeviceSession : IDisposable
  6. {
  7. bool RegisterBuffer(AudioBuffer buffer);
  8. void UnregisterBuffer(AudioBuffer buffer);
  9. void QueueBuffer(AudioBuffer buffer);
  10. bool WasBufferFullyConsumed(AudioBuffer buffer);
  11. void SetVolume(float volume);
  12. float GetVolume();
  13. ulong GetPlayedSampleCount();
  14. void Start();
  15. void Stop();
  16. void PrepareToClose();
  17. }
  18. }