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