2018-08-16 19:47:36 -04:00
|
|
|
using System;
|
|
|
|
|
2018-03-15 20:06:24 -04:00
|
|
|
namespace Ryujinx.Audio
|
|
|
|
{
|
2018-08-16 19:47:36 -04:00
|
|
|
public interface IAalOutput : IDisposable
|
2018-03-15 20:06:24 -04:00
|
|
|
{
|
2018-07-14 22:57:41 -04:00
|
|
|
int OpenTrack(int SampleRate, int Channels, ReleaseCallback Callback);
|
2018-03-15 23:42:44 -04:00
|
|
|
|
2018-03-15 20:06:24 -04:00
|
|
|
void CloseTrack(int Track);
|
|
|
|
|
|
|
|
bool ContainsBuffer(int Track, long Tag);
|
|
|
|
|
2018-03-15 23:42:44 -04:00
|
|
|
long[] GetReleasedBuffers(int Track, int MaxCount);
|
|
|
|
|
2018-07-14 22:57:41 -04:00
|
|
|
void AppendBuffer<T>(int Track, long Tag, T[] Buffer) where T : struct;
|
2018-03-15 20:06:24 -04:00
|
|
|
|
|
|
|
void Start(int Track);
|
|
|
|
void Stop(int Track);
|
|
|
|
|
|
|
|
PlaybackState GetState(int Track);
|
|
|
|
}
|
|
|
|
}
|