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:
25
src/Ryujinx.HLE/HOS/Kernel/SupervisorCall/ExternalEvent.cs
Normal file
25
src/Ryujinx.HLE/HOS/Kernel/SupervisorCall/ExternalEvent.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using Ryujinx.HLE.HOS.Kernel.Threading;
|
||||
using Ryujinx.Horizon.Common;
|
||||
|
||||
namespace Ryujinx.HLE.HOS.Kernel.SupervisorCall
|
||||
{
|
||||
readonly struct ExternalEvent : IExternalEvent
|
||||
{
|
||||
private readonly KWritableEvent _writableEvent;
|
||||
|
||||
public ExternalEvent(KWritableEvent writableEvent)
|
||||
{
|
||||
_writableEvent = writableEvent;
|
||||
}
|
||||
|
||||
public readonly void Signal()
|
||||
{
|
||||
_writableEvent.Signal();
|
||||
}
|
||||
|
||||
public readonly void Clear()
|
||||
{
|
||||
_writableEvent.Clear();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user