0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-12-27 12:25:49 +00:00
ryujinx-fork/Ryujinx.Audio/Integration/IHardwareDeviceSession.cs

28 lines
541 B
C#
Raw Normal View History

using Ryujinx.Audio.Common;
using System;
namespace Ryujinx.Audio.Integration
{
public interface IHardwareDeviceSession : IDisposable
{
bool RegisterBuffer(AudioBuffer buffer);
void UnregisterBuffer(AudioBuffer buffer);
void QueueBuffer(AudioBuffer buffer);
bool WasBufferFullyConsumed(AudioBuffer buffer);
void SetVolume(float volume);
float GetVolume();
ulong GetPlayedSampleCount();
void Start();
void Stop();
void PrepareToClose();
}
}