Difference between revisions of "Audio services"

From Nintendo Switch Brew
Jump to navigation Jump to search
Line 77: Line 77:
 
! Cmd || Name
 
! Cmd || Name
 
|-
 
|-
| 0 || SleepCodecController
+
| 0 || InitializeCodecController
 
|-
 
|-
| 1 || WakeCodecController
+
| 1 || FinalizeCodecController
 
|-
 
|-
| 2 || [[#SetCodecVolume]]
+
| 2 || SleepCodecController
 
|-
 
|-
| 3 || GetCodecVolumeMax
+
| 3 || WakeCodecController
 
|-
 
|-
| 4 || GetCodecVolumeMin
+
| 4 || [[#SetCodecVolume]]
 
|-
 
|-
| 5 || SetCodecActiveTarget
+
| 5 || GetCodecVolumeMax
 
|-
 
|-
| 6 || Unknown
+
| 6 || GetCodecVolumeMin
 
|-
 
|-
| 7 || BindCodecHeadphoneMicJackInterrupt
+
| 7 || SetCodecActiveTarget
 
|-
 
|-
| 8 || IsCodecHeadphoneMicJackInserted
+
| 8 || Unknown
 
|-
 
|-
| 9 || ClearCodecHeadphoneMicJackInterrupt
+
| 9 || BindCodecHeadphoneMicJackInterrupt
 
|-
 
|-
| 10 || IsCodecDeviceRequested
+
| 10 || IsCodecHeadphoneMicJackInserted
 +
|-
 +
| 11 || ClearCodecHeadphoneMicJackInterrupt
 +
|-
 +
| 12 || IsCodecDeviceRequested
 
|}
 
|}
  

Revision as of 21:06, 29 December 2017

audout:u

Cmd Name
0 ListAudioOuts
1 #OpenAudioOut

OpenAudioOut

Takes two u64s (an interface ID and a PID placeholder?), a PID, a process handle, and the name of the interface you want to connect to. Returns an #IAudioOut object.

IAudioOut

Cmd Name
0 #GetAudioOutState
1 StartAudioOut
2 StopAudioOut
3 AppendAudioOutBuffer
4 RegisterBufferEvent
5 GetReleasedAudioOutBuffer
6 ContainsAudioOutBuffer

GetAudioOutState

Returns a AudioOutState, 0x00=Started 0x01=Stopped

audin:u

Cmd Name
0 ListAudioIns
1 OpenAudioIn

IAudioIn

Cmd Name
0 #GetAudioInState
1 StartAudioIn
2 StopAudioIn
3 AppendAudioInBuffer
4 RegisterBufferEvent
5 GetReleasedAudioInBuffer
6 ContainsAudioInBuffer

GetAudioInState

Returns a AudioInState, 0x00=Started 0x01=Stopped

codecctl

Cmd Name
0 InitializeCodecController
1 FinalizeCodecController
2 SleepCodecController
3 WakeCodecController
4 #SetCodecVolume
5 GetCodecVolumeMax
6 GetCodecVolumeMin
7 SetCodecActiveTarget
8 Unknown
9 BindCodecHeadphoneMicJackInterrupt
10 IsCodecHeadphoneMicJackInserted
11 ClearCodecHeadphoneMicJackInterrupt
12 IsCodecDeviceRequested

SetCodecVolume

Takes a Volume (uint32)