nn_audio_device

Family of src/nx/nn/audio.hook. The hooks_off setting turns a family off by its name.

The audio device, with no IAudioDevice session (audren:u's GetAudioDeviceService): one output device, its volume and the events a game acquires for a change of device. Every function is the same call in every SDK read; which session command it sends differs (AcquireAudioDeviceNotificationForOutput asks for the system event in SDK 3.5 and for the output event from 6.5), and each is an event signaled when the game gets it. The last four are the Ounce SDK's. A 32-bit game: the ones the 32-bit SDKs read have, 0.12.16's and the input and output notifications and the channel count for output in 4.4.0 and 10.6.0, below 11.0.0 (a32 @version): between them by inference: switchbrew's IAudioDevice shows the commands they send unchanged from 1.0.0 to 10.x

nn::audio::ListAudioDeviceName(nn::audio::AudioDeviceName*, int) SDK < 11.0.0 32-bit source

_ZN2nn5audio19ListAudioDeviceNameEPNS0_15AudioDeviceNameEi
As C: i32 (addr names, i32 count)
Handler: nnaudio_list_device_names (audio.c)

nn::audio::ListAudioOutputDeviceName(nn::audio::AudioDeviceName*, int) source

_ZN2nn5audio25ListAudioOutputDeviceNameEPNS0_15AudioDeviceNameEi
As C: i32 (addr names, i32 count)
Handler: nnaudio_list_device_names (audio.c)

nn::audio::GetActiveAudioDeviceName(nn::audio::AudioDeviceName*) SDK < 11.0.0 32-bit source

_ZN2nn5audio24GetActiveAudioDeviceNameEPNS0_15AudioDeviceNameE
As C: void (addr name)
Handler: nnaudio_get_active_device_name (audio.c)

nn::audio::GetActiveAudioOutputDeviceName(nn::audio::AudioDeviceName*) source

_ZN2nn5audio30GetActiveAudioOutputDeviceNameEPNS0_15AudioDeviceNameE
As C: void (addr name)
Handler: nnaudio_get_active_device_name (audio.c)

nn::audio::GetActiveAudioDeviceChannelCountForOutput() SDK < 11.0.0 32-bit source

_ZN2nn5audio41GetActiveAudioDeviceChannelCountForOutputEv
As C: i32 ()
Handler: nnaudio_get_active_device_channel_count (audio.c)

its name up to SDK 10

nn::audio::GetActiveChannelCount() SDK < 11.0.0 32-bit source

_ZN2nn5audio21GetActiveChannelCountEv
As C: i32 ()
Handler: nnaudio_get_active_device_channel_count (audio.c)

nn::audio::SetAudioDeviceOutputVolume(nn::audio::AudioDeviceName const*, float) SDK < 11.0.0 32-bit source

_ZN2nn5audio26SetAudioDeviceOutputVolumeEPKNS0_15AudioDeviceNameEf
As C: void (addr name, f32 volume)
Handler: nnaudio_set_device_output_volume (audio.c)

nn::audio::GetAudioDeviceOutputVolume(nn::audio::AudioDeviceName const*) SDK < 11.0.0 32-bit source

_ZN2nn5audio26GetAudioDeviceOutputVolumeEPKNS0_15AudioDeviceNameE
As C: f32 (addr name)
Handler: nnaudio_get_device_output_volume (audio.c)

nn::audio::AcquireAudioDeviceNotificationForOutput(nn::os::SystemEvent*) SDK < 11.0.0 32-bit source

_ZN2nn5audio39AcquireAudioDeviceNotificationForOutputEPNS_2os11SystemEventE
As C: void (addr event)
Handler: nnaudio_acquire_device_output_event (audio.c)

nn::audio::AcquireAudioDeviceNotificationForInput(nn::os::SystemEvent*) SDK < 11.0.0 32-bit source

_ZN2nn5audio38AcquireAudioDeviceNotificationForInputEPNS_2os11SystemEventE
As C: void (addr event)
Handler: nnaudio_acquire_device_input_event (audio.c)

nn::audio::AcquireAudioDeviceSwitchNotification(nn::os::SystemEvent*) SDK < 11.0.0 32-bit source

_ZN2nn5audio36AcquireAudioDeviceSwitchNotificationEPNS_2os11SystemEventE
As C: void (addr event)
Handler: nnaudio_acquire_device_switch_event (audio.c)

nn::audio::SetDeviceOutputVolumeAutoTuneModeEnabled(bool) source

_ZN2nn5audio40SetDeviceOutputVolumeAutoTuneModeEnabledEb
As C: void (bool enabled)
Handler: nnaudio_set_device_auto_tune (audio.c)

nn::audio::IsDeviceOutputVolumeAutoTuneModeEnabled() source

_ZN2nn5audio39IsDeviceOutputVolumeAutoTuneModeEnabledEv
As C: bool ()
Handler: nnaudio_is_device_auto_tune (audio.c)

nn::audio::AcquireAudioOutputDeviceNotification(nn::os::SystemEvent*) source

_ZN2nn5audio36AcquireAudioOutputDeviceNotificationEPNS_2os11SystemEventE
As C: void (addr event)
Handler: nnaudio_acquire_device_notification (audio.c)

nn::audio::AcquireAudioInputDeviceNotification(nn::os::SystemEvent*) source

_ZN2nn5audio35AcquireAudioInputDeviceNotificationEPNS_2os11SystemEventE
As C: void (addr event)
Handler: nnaudio_acquire_device_notification (audio.c)

nn::audio::ReleaseAudioOutputDeviceNotification(nn::os::SystemEvent*) source

_ZN2nn5audio36ReleaseAudioOutputDeviceNotificationEPNS_2os11SystemEventE
As C: void (addr event)
Handler: nnaudio_release_device_notification (audio.c)

nn::audio::ReleaseAudioInputDeviceNotification(nn::os::SystemEvent*) source

_ZN2nn5audio35ReleaseAudioInputDeviceNotificationEPNS_2os11SystemEventE
As C: void (addr event)
Handler: nnaudio_release_device_notification (audio.c)


Made from ScarletNX's Sail at 166ad3910f80. The hooks' and the SVCs' declarations and their handlers are ScarletNX's (GPL-3.0-or-later); the SVCs' declarations are Eden's, as hos.svc says.