AxibugEmuOnline/AxibugEmuOnline.Client/Assets/MyNes.Core/IAudioProvider.cs
2024-07-05 11:24:59 +08:00

32 lines
545 B
C#

namespace MyNes.Core
{
public interface IAudioProvider
{
string Name { get; }
string ID { get; }
bool AllowBufferChange { get; }
bool AllowFrequencyChange { get; }
void SubmitSamples(ref short[] buffer, ref int samples_added);
void TogglePause(bool paused);
void GetIsPlaying(out bool playing);
void Initialize();
void ShutDown();
void Reset();
void SignalToggle(bool started);
void SetVolume(int Vol);
void Update();
}
}