mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-07-11 13:34:18 +00: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:
30
src/Ryujinx.Horizon/Sdk/Audio/Detail/AudioSnoopManager.cs
Normal file
30
src/Ryujinx.Horizon/Sdk/Audio/Detail/AudioSnoopManager.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using Ryujinx.Horizon.Common;
|
||||
using Ryujinx.Horizon.Sdk.Sf;
|
||||
|
||||
namespace Ryujinx.Horizon.Sdk.Audio.Detail
|
||||
{
|
||||
partial class AudioSnoopManager : IAudioSnoopManager
|
||||
{
|
||||
// Note: The interface changed completely on firmware 17.0.0, this implementation is for older firmware.
|
||||
|
||||
[CmifCommand(0)]
|
||||
public Result EnableDspUsageMeasurement()
|
||||
{
|
||||
return Result.Success;
|
||||
}
|
||||
|
||||
[CmifCommand(1)]
|
||||
public Result DisableDspUsageMeasurement()
|
||||
{
|
||||
return Result.Success;
|
||||
}
|
||||
|
||||
[CmifCommand(6)]
|
||||
public Result GetDspUsage(out uint usage)
|
||||
{
|
||||
usage = 0;
|
||||
|
||||
return Result.Success;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user