mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
23 lines
613 B
C#
23 lines
613 B
C#
using System;
|
|
using System.IO;
|
|
using Robust.Shared.Audio.Sources;
|
|
|
|
namespace Robust.Client.Audio;
|
|
|
|
/// <summary>
|
|
/// Public audio API for stuff that can't go through <see cref="AudioSystem"/>
|
|
/// </summary>
|
|
[NotContentImplementable]
|
|
public interface IAudioManager
|
|
{
|
|
IAudioSource? CreateAudioSource(AudioStream stream);
|
|
|
|
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 SetMasterGain(float gain);
|
|
}
|