2018-08-16 18:47:36 -05:00
|
|
|
using System;
|
|
|
|
|
2018-03-15 19:06:24 -05:00
|
|
|
namespace Ryujinx.Audio
|
|
|
|
{
|
2018-08-16 18:47:36 -05:00
|
|
|
public interface IAalOutput : IDisposable
|
2018-03-15 19:06:24 -05:00
|
|
|
{
|
2018-11-14 20:22:50 -06:00
|
|
|
int OpenTrack(int sampleRate, int channels, ReleaseCallback callback);
|
2018-03-15 22:42:44 -05:00
|
|
|
|
2018-11-14 20:22:50 -06:00
|
|
|
void CloseTrack(int trackId);
|
2018-03-15 19:06:24 -05:00
|
|
|
|
2018-11-14 20:22:50 -06:00
|
|
|
bool ContainsBuffer(int trackId, long bufferTag);
|
2018-03-15 19:06:24 -05:00
|
|
|
|
2018-11-14 20:22:50 -06:00
|
|
|
long[] GetReleasedBuffers(int trackId, int maxCount);
|
2018-03-15 22:42:44 -05:00
|
|
|
|
2018-11-14 20:22:50 -06:00
|
|
|
void AppendBuffer<T>(int trackId, long bufferTag, T[] buffer) where T : struct;
|
2018-03-15 19:06:24 -05:00
|
|
|
|
2018-11-14 20:22:50 -06:00
|
|
|
void Start(int trackId);
|
|
|
|
void Stop(int trackId);
|
2018-03-15 19:06:24 -05:00
|
|
|
|
2018-11-14 20:22:50 -06:00
|
|
|
PlaybackState GetState(int trackId);
|
2018-03-15 19:06:24 -05:00
|
|
|
}
|
|
|
|
}
|