mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-06 02:08:28 +02:00

* 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
24 lines
538 B
C#
24 lines
538 B
C#
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();
|
|
}
|
|
}
|
|
}
|