mirror of
https://git.citron-emu.org/Citron/Citron.git
synced 2025-03-15 05:34:49 +00:00
service/audio: Clean up audio controller implementation
- Remove Unknown5000 function and related debug commands - Fix incorrect service name in log message
This commit is contained in:
parent
6917a22a2c
commit
76716b5248
2 changed files with 1 additions and 15 deletions
|
@ -57,7 +57,6 @@ IAudioController::IAudioController(Core::System& system_)
|
||||||
{40, nullptr, "GetSystemInformationForDebug"},
|
{40, nullptr, "GetSystemInformationForDebug"},
|
||||||
{41, nullptr, "SetVolumeButtonLongPressTime"},
|
{41, nullptr, "SetVolumeButtonLongPressTime"},
|
||||||
{42, nullptr, "SetNativeVolumeForDebug"},
|
{42, nullptr, "SetNativeVolumeForDebug"},
|
||||||
{5000, D<&IAudioController::Unknown5000>, "Unknown5000"},
|
|
||||||
{10000, nullptr, "NotifyAudioOutputTargetForPlayReport"},
|
{10000, nullptr, "NotifyAudioOutputTargetForPlayReport"},
|
||||||
{10001, nullptr, "NotifyAudioOutputChannelCountForPlayReport"},
|
{10001, nullptr, "NotifyAudioOutputChannelCountForPlayReport"},
|
||||||
{10002, nullptr, "NotifyUnsupportedUsbOutputDeviceAttachedForPlayReport"},
|
{10002, nullptr, "NotifyUnsupportedUsbOutputDeviceAttachedForPlayReport"},
|
||||||
|
@ -69,9 +68,6 @@ IAudioController::IAudioController(Core::System& system_)
|
||||||
{10105, nullptr, "BindAudioOutputChannelCountUpdateEventForPlayReport"},
|
{10105, nullptr, "BindAudioOutputChannelCountUpdateEventForPlayReport"},
|
||||||
{10106, nullptr, "GetDefaultAudioOutputTargetForPlayReport"},
|
{10106, nullptr, "GetDefaultAudioOutputTargetForPlayReport"},
|
||||||
{50000, nullptr, "SetAnalogInputBoostGainForPrototyping"},
|
{50000, nullptr, "SetAnalogInputBoostGainForPrototyping"},
|
||||||
{50001, nullptr, "OverrideDefaultTargetForDebug"},
|
|
||||||
{50003, nullptr, "SetForceOverrideExternalDeviceNameForDebug"},
|
|
||||||
{50004, nullptr, "ClearForceOverrideExternalDeviceNameForDebug"}
|
|
||||||
};
|
};
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
|
@ -174,19 +170,10 @@ Result IAudioController::IsSpeakerAutoMuteEnabled(Out<bool> out_is_speaker_auto_
|
||||||
|
|
||||||
Result IAudioController::AcquireTargetNotification(
|
Result IAudioController::AcquireTargetNotification(
|
||||||
OutCopyHandle<Kernel::KReadableEvent> out_notification_event) {
|
OutCopyHandle<Kernel::KReadableEvent> out_notification_event) {
|
||||||
LOG_WARNING(Service_AM, "(STUBBED) called");
|
LOG_WARNING(Service_Audio, "(STUBBED) called");
|
||||||
|
|
||||||
*out_notification_event = ¬ification_event->GetReadableEvent();
|
*out_notification_event = ¬ification_event->GetReadableEvent();
|
||||||
R_SUCCEED();
|
R_SUCCEED();
|
||||||
}
|
}
|
||||||
|
|
||||||
Result IAudioController::Unknown5000(Out<SharedPointer<IAudioController>> out_audio_controller) {
|
|
||||||
LOG_DEBUG(Audio, "Creating duplicate audio controller interface");
|
|
||||||
|
|
||||||
// Return a new reference to this controller instance
|
|
||||||
*out_audio_controller = SharedFrom(this);
|
|
||||||
|
|
||||||
R_SUCCEED();
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace Service::Audio
|
} // namespace Service::Audio
|
||||||
|
|
|
@ -49,7 +49,6 @@ private:
|
||||||
Result SetSpeakerAutoMuteEnabled(bool is_speaker_auto_mute_enabled);
|
Result SetSpeakerAutoMuteEnabled(bool is_speaker_auto_mute_enabled);
|
||||||
Result IsSpeakerAutoMuteEnabled(Out<bool> out_is_speaker_auto_mute_enabled);
|
Result IsSpeakerAutoMuteEnabled(Out<bool> out_is_speaker_auto_mute_enabled);
|
||||||
Result AcquireTargetNotification(OutCopyHandle<Kernel::KReadableEvent> out_notification_event);
|
Result AcquireTargetNotification(OutCopyHandle<Kernel::KReadableEvent> out_notification_event);
|
||||||
Result Unknown5000(Out<SharedPointer<IAudioController>> out_audio_controller);
|
|
||||||
|
|
||||||
KernelHelpers::ServiceContext service_context;
|
KernelHelpers::ServiceContext service_context;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue