mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
24 lines
715 B
C#
24 lines
715 B
C#
using System;
|
|
using System.IO;
|
|
using Robust.Client.Audio;
|
|
|
|
namespace Robust.Client.Graphics
|
|
{
|
|
public interface IClydeAudio
|
|
{
|
|
// AUDIO SYSTEM DOWN BELOW.
|
|
AudioStream LoadAudioOggVorbis(Stream stream, string? name = null);
|
|
AudioStream LoadAudioWav(Stream stream, string? name = null);
|
|
AudioStream LoadAudioRaw(ReadOnlySpan<short> samples, int channels, int sampleRate, string? name = null);
|
|
|
|
void SetMasterVolume(float newVolume);
|
|
|
|
void DisposeAllAudio();
|
|
|
|
void StopAllAudio();
|
|
|
|
IClydeAudioSource? CreateAudioSource(AudioStream stream);
|
|
IClydeBufferedAudioSource CreateBufferedAudioSource(int buffers, bool floatAudio=false);
|
|
}
|
|
}
|