mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-28 06:46:24 +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:
parent
57d8afd0c9
commit
d4d0a48bfe
130 changed files with 3096 additions and 3174 deletions
|
@ -117,12 +117,12 @@ namespace Ryujinx.HLE
|
|||
|
||||
public void SetVolume(float volume)
|
||||
{
|
||||
System.SetVolume(Math.Clamp(volume, 0, 1));
|
||||
AudioDeviceDriver.Volume = Math.Clamp(volume, 0f, 1f);
|
||||
}
|
||||
|
||||
public float GetVolume()
|
||||
{
|
||||
return System.GetVolume();
|
||||
return AudioDeviceDriver.Volume;
|
||||
}
|
||||
|
||||
public void EnableCheats()
|
||||
|
@ -132,7 +132,7 @@ namespace Ryujinx.HLE
|
|||
|
||||
public bool IsAudioMuted()
|
||||
{
|
||||
return System.GetVolume() == 0;
|
||||
return AudioDeviceDriver.Volume == 0;
|
||||
}
|
||||
|
||||
public void DisposeGpu()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue