libnx  v4.2.2
Enumerations | Functions
audctl.h File Reference

Audio Control IPC wrapper. More...

#include "../types.h"
#include "../audio/audio.h"
#include "../sf/service.h"
#include "../kernel/event.h"

Go to the source code of this file.

Enumerations

enum  AudioTarget {
  AudioTarget_Invalid = 0,
  AudioTarget_Speaker = 1,
  AudioTarget_Headphone = 2,
  AudioTarget_Tv = 3,
  AudioTarget_UsbOutputDevice = 4
}
 
enum  AudioOutputMode {
  AudioOutputMode_Invalid = 0,
  AudioOutputMode_Pcm1ch = 1,
  AudioOutputMode_Pcm2ch = 2,
  AudioOutputMode_Pcm6ch = 3,
  AudioOutputMode_PcmAuto = 4
}
 
enum  AudioForceMutePolicy {
  AudioForceMutePolicy_Disable = 0,
  AudioForceMutePolicy_SpeakerMuteOnHeadphoneUnplugged = 1
}
 
enum  AudioHeadphoneOutputLevelMode {
  AudioHeadphoneOutputLevelMode_Normal = 0,
  AudioHeadphoneOutputLevelMode_HighPower = 1
}
 

Functions

Result audctlInitialize (void)
 
void audctlExit (void)
 
ServiceaudctlGetServiceSession (void)
 
Result audctlGetTargetVolume (float *volume_out, AudioTarget target)
 
Result audctlSetTargetVolume (AudioTarget target, float volume)
 
Result audctlGetTargetVolumeMin (float *volume_out)
 
Result audctlGetTargetVolumeMax (float *volume_out)
 
Result audctlIsTargetMute (bool *mute_out, AudioTarget target)
 
Result audctlSetTargetMute (AudioTarget target, bool mute)
 
Result audctlIsTargetConnected (bool *connected_out, AudioTarget target)
 
Result audctlSetDefaultTarget (AudioTarget target, u64 fade_in_ns, u64 fade_out_ns)
 
Result audctlGetDefaultTarget (AudioTarget *target_out)
 
Result audctlGetAudioOutputMode (AudioOutputMode *mode_out, AudioTarget target)
 
Result audctlSetAudioOutputMode (AudioTarget target, AudioOutputMode mode)
 
Result audctlSetForceMutePolicy (AudioForceMutePolicy policy)
 
Result audctlGetForceMutePolicy (AudioForceMutePolicy *policy_out)
 
Result audctlGetOutputModeSetting (AudioOutputMode *mode_out, AudioTarget target)
 
Result audctlSetOutputModeSetting (AudioTarget target, AudioOutputMode mode)
 
Result audctlSetOutputTarget (AudioTarget target)
 
Result audctlSetInputTargetForceEnabled (bool enable)
 
Result audctlSetHeadphoneOutputLevelMode (AudioHeadphoneOutputLevelMode mode)
 [3.0.0+]
 
Result audctlGetHeadphoneOutputLevelMode (AudioHeadphoneOutputLevelMode *mode_out)
 [3.0.0+]
 
Result audctlAcquireAudioVolumeUpdateEventForPlayReport (Event *event_out)
 [3.0.0+]
 
Result audctlAcquireAudioOutputDeviceUpdateEventForPlayReport (Event *event_out)
 [3.0.0+]
 
Result audctlGetAudioOutputTargetForPlayReport (AudioTarget *target_out)
 [3.0.0+]
 
Result audctlNotifyHeadphoneVolumeWarningDisplayedEvent (void)
 [3.0.0+]
 
Result audctlSetSystemOutputMasterVolume (float volume)
 [4.0.0+]
 
Result audctlGetSystemOutputMasterVolume (float *volume_out)
 [4.0.0+]
 

Detailed Description

Audio Control IPC wrapper.

Author
plutoo