aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Horizon/Sdk/Audio/Detail/IAudioDevice.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2024-02-22 16:58:33 -0300
committerGitHub <noreply@github.com>2024-02-22 16:58:33 -0300
commitd4d0a48bfe89d6e8e12ce16829bb2c440b56007c (patch)
tree2376566ed2c06181b3dbc547b1f99f5b533d918b /src/Ryujinx.Horizon/Sdk/Audio/Detail/IAudioDevice.cs
parent57d8afd0c99bb43d1ba1e3cc630d257c5da92741 (diff)
Migrate Audio service to new IPC (#6285)
* Migrate audren to new IPC * Migrate audout * Migrate audin * Migrate hwopus * Bye bye old audio service * Switch volume control to IHardwareDeviceDriver * Somewhat unrelated changes * Remove Concentus reference from HLE * Implement OpenAudioRendererForManualExecution * Remove SetVolume/GetVolume methods that are not necessary * Remove SetVolume/GetVolume methods that are not necessary (2) * Fix incorrect volume update * PR feedback * PR feedback * Stub audrec * Init outParameter * Make FinalOutputRecorderParameter/Internal readonly * Make FinalOutputRecorder IDisposable * Fix HardwareOpusDecoderManager parameter buffers * Opus work buffer size and error handling improvements * Add AudioInProtocolName enum * Fix potential divisions by zero
Diffstat (limited to 'src/Ryujinx.Horizon/Sdk/Audio/Detail/IAudioDevice.cs')
-rw-r--r--src/Ryujinx.Horizon/Sdk/Audio/Detail/IAudioDevice.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Ryujinx.Horizon/Sdk/Audio/Detail/IAudioDevice.cs b/src/Ryujinx.Horizon/Sdk/Audio/Detail/IAudioDevice.cs
new file mode 100644
index 00000000..3df1fe22
--- /dev/null
+++ b/src/Ryujinx.Horizon/Sdk/Audio/Detail/IAudioDevice.cs
@@ -0,0 +1,24 @@
+using Ryujinx.Horizon.Common;
+using Ryujinx.Horizon.Sdk.Sf;
+using System;
+
+namespace Ryujinx.Horizon.Sdk.Audio.Detail
+{
+ interface IAudioDevice : IServiceObject
+ {
+ Result ListAudioDeviceName(Span<DeviceName> names, out int nameCount);
+ Result SetAudioDeviceOutputVolume(ReadOnlySpan<DeviceName> name, float volume);
+ Result GetAudioDeviceOutputVolume(ReadOnlySpan<DeviceName> name, out float volume);
+ Result GetActiveAudioDeviceName(Span<DeviceName> name);
+ Result QueryAudioDeviceSystemEvent(out int eventHandle);
+ Result GetActiveChannelCount(out int channelCount);
+ Result ListAudioDeviceNameAuto(Span<DeviceName> names, out int nameCount);
+ Result SetAudioDeviceOutputVolumeAuto(ReadOnlySpan<DeviceName> name, float volume);
+ Result GetAudioDeviceOutputVolumeAuto(ReadOnlySpan<DeviceName> name, out float volume);
+ Result GetActiveAudioDeviceNameAuto(Span<DeviceName> name);
+ Result QueryAudioDeviceInputEvent(out int eventHandle);
+ Result QueryAudioDeviceOutputEvent(out int eventHandle);
+ Result GetActiveAudioOutputDeviceName(Span<DeviceName> name);
+ Result ListAudioOutputDeviceName(Span<DeviceName> names, out int nameCount);
+ }
+}