aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Audio/IAalOutput.cs
blob: 119fc2342df73d2f29a9951d3f09357caed6bff5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;

namespace Ryujinx.Audio
{
    public interface IAalOutput : IDisposable
    {
        int OpenTrack(int sampleRate, int channels, ReleaseCallback callback);

        void CloseTrack(int trackId);

        bool ContainsBuffer(int trackId, long bufferTag);

        long[] GetReleasedBuffers(int trackId, int maxCount);

        void AppendBuffer<T>(int trackId, long bufferTag, T[] buffer)  where T : struct;

        void Start(int trackId);
        void Stop(int trackId);

        PlaybackState GetState(int trackId);
    }
}