mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-03 10:37:05 +02:00
1. Allow loading audio directly from a sample buffer 2. SetVolumeDirect that takes a 0 -> 1 scale similar to OpenAL's AL_GAIN. 3. Fix OpenAL threading bugs with logging by caching the sawmill.
20 lines
651 B
C#
20 lines
651 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);
|
|
|
|
IClydeAudioSource CreateAudioSource(AudioStream stream);
|
|
IClydeBufferedAudioSource CreateBufferedAudioSource(int buffers, bool floatAudio=false);
|
|
}
|
|
}
|