* 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
25 lines
981 B
C#
25 lines
981 B
C#
using Ryujinx.Horizon.Common;
|
|
using Ryujinx.Horizon.Sdk.Sf;
|
|
using System;
|
|
|
|
namespace Ryujinx.Horizon.Sdk.Audio.Detail
|
|
{
|
|
interface IAudioRenderer : IServiceObject
|
|
{
|
|
Result GetSampleRate(out int sampleRate);
|
|
Result GetSampleCount(out int sampleCount);
|
|
Result GetMixBufferCount(out int mixBufferCount);
|
|
Result GetState(out int state);
|
|
Result RequestUpdate(Span<byte> output, Span<byte> performanceOutput, ReadOnlySpan<byte> input);
|
|
Result Start();
|
|
Result Stop();
|
|
Result QuerySystemEvent(out int eventHandle);
|
|
Result SetRenderingTimeLimit(int percent);
|
|
Result GetRenderingTimeLimit(out int percent);
|
|
Result RequestUpdateAuto(Span<byte> output, Span<byte> performanceOutput, ReadOnlySpan<byte> input);
|
|
Result ExecuteAudioRendererRendering();
|
|
Result SetVoiceDropParameter(float voiceDropParameter);
|
|
Result GetVoiceDropParameter(out float voiceDropParameter);
|
|
}
|
|
}
|