Difference between revisions of "Audio services"

From Nintendo Switch Brew
Jump to navigation Jump to search
(Created page with "= audout:u = {| class="wikitable" border="1" |- ! Cmd || Name |- | 0 || ListAudioOuts |- | 1 || #OpenAudioOut |} == OpenAudioOut == Takes two u64s (an interface ID and a...")
 
(audin:u)
Line 17: Line 17:
 
! Cmd || Name
 
! Cmd || Name
 
|-
 
|-
| 0 || GetAudioOutState
+
| 0 || [[#GetAudioOutState]]
 
|-
 
|-
 
| 1 || StartAudioOut
 
| 1 || StartAudioOut
Line 32: Line 32:
 
|}
 
|}
  
 +
=== GetAudioOutState ===
 +
 +
Returns a AudioOutState, 0x00=Started 0x01=Stopped
 +
 +
= audin:u =
 +
 +
{| class="wikitable" border="1"
 +
|-
 +
! Cmd || Name
 +
|-
 +
| 0 || ListAudioIns
 +
|-
 +
| 1 || OpenAudioIn
 +
|}
 +
 +
== IAudioIn ==
 +
{| class="wikitable" border="1"
 +
|-
 +
! Cmd || Name
 +
|-
 +
| 0 || [[#GetAudioInState]]
 +
|-
 +
| 1 || StartAudioIn
 +
|-
 +
| 2 || StopAudioIn
 +
|-
 +
| 3 || AppendAudioInBuffer
 +
|-
 +
| 4 || RegisterBufferEvent
 +
|-
 +
| 5 || GetReleasedAudioInBuffer
 +
|-
 +
| 6 || ContainsAudioInBuffer
 +
|}
 +
 +
=== GetAudioInState ===
 +
 +
Returns a AudioInState, 0x00=Started 0x01=Stopped
  
 
[[Category:Services]]
 
[[Category:Services]]

Revision as of 18:35, 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