aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Audio/AudioRenderer/IAudioRenderer.cs
blob: a59c94e9762be582200127bc01aede40ea03a3df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using Ryujinx.HLE.HOS.Kernel.Threading;
using System;

namespace Ryujinx.HLE.HOS.Services.Audio.AudioRenderer
{
    interface IAudioRenderer : IDisposable
    {
        uint GetSampleRate();
        uint GetSampleCount();
        uint GetMixBufferCount();
        int GetState();
        ResultCode RequestUpdate(Memory<byte> output, Memory<byte> performanceOutput, ReadOnlyMemory<byte> input);
        ResultCode Start();
        ResultCode Stop();
        ResultCode QuerySystemEvent(out KEvent systemEvent);
        void SetRenderingTimeLimit(uint percent);
        uint GetRenderingTimeLimit();
        ResultCode ExecuteAudioRendererRendering();
    }
}