mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-08 11:18:27 +02:00
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
This commit is contained in:
23
src/Ryujinx.Horizon/Sdk/Audio/Detail/AudioInProtocol.cs
Normal file
23
src/Ryujinx.Horizon/Sdk/Audio/Detail/AudioInProtocol.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Ryujinx.Common.Memory;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Ryujinx.Horizon.Sdk.Audio.Detail
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential, Size = 0x8, Pack = 0x1)]
|
||||
struct AudioInProtocol
|
||||
{
|
||||
public AudioInProtocolName Name;
|
||||
public Array7<byte> Padding;
|
||||
|
||||
public AudioInProtocol(AudioInProtocolName name)
|
||||
{
|
||||
Name = name;
|
||||
Padding = new();
|
||||
}
|
||||
|
||||
public override readonly string ToString()
|
||||
{
|
||||
return Name.ToString();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user