mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-16 18:15:25 +00:00
34 lines
710 B
C#
34 lines
710 B
C#
|
using Ryujinx.Audio.Common;
|
|||
|
using Ryujinx.HLE.HOS.Kernel.Threading;
|
|||
|
using System;
|
|||
|
|
|||
|
namespace Ryujinx.HLE.HOS.Services.Audio.AudioOut
|
|||
|
{
|
|||
|
interface IAudioOut : IDisposable
|
|||
|
{
|
|||
|
AudioDeviceState GetState();
|
|||
|
|
|||
|
ResultCode Start();
|
|||
|
|
|||
|
ResultCode Stop();
|
|||
|
|
|||
|
ResultCode AppendBuffer(ulong bufferTag, ref AudioUserBuffer buffer);
|
|||
|
|
|||
|
KEvent RegisterBufferEvent();
|
|||
|
|
|||
|
ResultCode GetReleasedBuffers(Span<ulong> releasedBuffers, out uint releasedCount);
|
|||
|
|
|||
|
bool ContainsBuffer(ulong bufferTag);
|
|||
|
|
|||
|
uint GetBufferCount();
|
|||
|
|
|||
|
ulong GetPlayedSampleCount();
|
|||
|
|
|||
|
bool FlushBuffers();
|
|||
|
|
|||
|
void SetVolume(float volume);
|
|||
|
|
|||
|
float GetVolume();
|
|||
|
}
|
|||
|
}
|