IAalOutput.cs 610 B

123456789101112131415161718192021222324252627
  1. using System;
  2. namespace Ryujinx.Audio
  3. {
  4. public interface IAalOutput : IDisposable
  5. {
  6. int OpenTrack(int sampleRate, int channels, ReleaseCallback callback);
  7. void CloseTrack(int trackId);
  8. bool ContainsBuffer(int trackId, long bufferTag);
  9. long[] GetReleasedBuffers(int trackId, int maxCount);
  10. void AppendBuffer<T>(int trackId, long bufferTag, T[] buffer) where T : struct;
  11. void Start(int trackId);
  12. void Stop(int trackId);
  13. float GetVolume();
  14. void SetVolume(float volume);
  15. PlaybackState GetState(int trackId);
  16. }
  17. }