[AudioIn] Answer sceAudioInGetSilentState without an input backend

No AudioIn port can be opened until an input backend exists, so the export
returns an AudioIn error code (0x80260101) instead of being an unresolved
import.
This commit is contained in:
ParantezTech 2026-10-02 19:07:29 +03:00
parent 20e8a18009
commit 7041911bb3
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
// Copyright (C) 2026 SharpEmu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
using SharpEmu.HLE;
namespace SharpEmu.Libs.Audio;
public static class AudioInExports
{
[SysAbiExport(
Nid = "BohEAQ7DlUE",
ExportName = "sceAudioInGetSilentState",
Target = Generation.Gen4 | Generation.Gen5,
LibraryName = "libSceAudioIn")]
public static int GetSilentState(CpuContext ctx) =>
// No AudioIn ports can be opened until an input backend is implemented.
ctx.SetReturn(unchecked((int)0x80260101));
}