mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-15 14:52:35 +02:00
28 lines
731 B
C#
28 lines
731 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
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
|
|
{
|
|
IReadOnlyList<string> GetAudioDevices();
|
|
|
|
string? GetDefaultAudioDevice();
|
|
|
|
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);
|
|
}
|