Audio services: Difference between revisions
No edit summary |
|||
Line 10: | Line 10: | ||
| 1 || [[#OpenAudioOut]] | | 1 || [[#OpenAudioOut]] | ||
|- | |- | ||
| 2 || [3.0.0+] [[# | | 2 || [3.0.0+] [[#ListAudioOutsAuto]] | ||
|- | |- | ||
| 3 || [3.0.0+] [[# | | 3 || [3.0.0+] [[#OpenAudioOutAuto]] | ||
|} | |} | ||
Line 43: | Line 43: | ||
|} | |} | ||
== | == ListAudioOutsAuto == | ||
Same as [[#ListAudioOuts]], but takes a type-0x22 output buffer instead. | Same as [[#ListAudioOuts]], but takes a type-0x22 output buffer instead. | ||
== | == OpenAudioOutAuto == | ||
Same as [[#OpenAudioOut]], but takes a type-0x21 input buffer instead. | Same as [[#OpenAudioOut]], but takes a type-0x21 input buffer instead. | ||
Line 70: | Line 70: | ||
| 6 || [[#ContainsAudioOutBuffer]] | | 6 || [[#ContainsAudioOutBuffer]] | ||
|- | |- | ||
| 7 || [3.0.0+] [[# | | 7 || [3.0.0+] [[#AppendAudioOutBufferAuto]] | ||
|- | |- | ||
| 8 || [3.0.0+] [[# | | 8 || [3.0.0+] [[#GetReleasedAudioOutBufferAuto]] | ||
|- | |- | ||
| 9 || [4.0.0+] | | 9 || [4.0.0+] GetAudioOutBufferCount | ||
|- | |- | ||
| 10 || [4.0.0+] | | 10 || [4.0.0+] GetAudioOutPlayedSampleCount | ||
|- | |- | ||
| 11 || [4.0.0+] | | 11 || [4.0.0+] FlushAudioOutBuffers | ||
|} | |} | ||
Line 119: | Line 119: | ||
Takes an u64 '''tag''' for the desired buffer. Returns 1 if the buffer was appended and not yet released. | Takes an u64 '''tag''' for the desired buffer. Returns 1 if the buffer was appended and not yet released. | ||
=== | === AppendAudioOutBufferAuto === | ||
Same as [[#AppendAudioOutBuffer]] but takes a type-0x21 buffer instead. | Same as [[#AppendAudioOutBuffer]] but takes a type-0x21 buffer instead. | ||
=== | === GetReleasedAudioOutBufferAuto === | ||
Same as [[#GetReleasedAudioOutBuffer]] but takes a type-0x22 buffer instead. | Same as [[#GetReleasedAudioOutBuffer]] but takes a type-0x22 buffer instead. | ||
= audin:u = | = audin:u = | ||
This is "nn::audio::detail:: | This is "nn::audio::detail::IAudioInManager". | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
Line 136: | Line 136: | ||
| 1 || OpenAudioIn | | 1 || OpenAudioIn | ||
|- | |- | ||
| 2 || [3.0.0+] | | 2 || [3.0.0+] | ||
|- | |- | ||
| 3 || [3.0.0+] | | 3 || [3.0.0+] OpenAudioInAuto | ||
|- | |- | ||
| 4 || [3.0.0+] | | 4 || [3.0.0+] ListAudioInsAuto | ||
|} | |} | ||
Line 166: | Line 166: | ||
| 7 || [3.0.0+] AppendAudioInBufferWithUserEvent | | 7 || [3.0.0+] AppendAudioInBufferWithUserEvent | ||
|- | |- | ||
| 8 || [3.0.0+] | | 8 || [3.0.0+] AppendAudioInBufferAuto | ||
|- | |- | ||
| 9 || [3.0.0+] | | 9 || [3.0.0+] GetReleasedAudioInBufferAuto | ||
|- | |- | ||
| 10 || [3.0.0+] | | 10 || [3.0.0+] AppendAudioInBufferWithUserEventAuto | ||
|- | |- | ||
| 11 || [4.0.0+] | | 11 || [4.0.0+] GetAudioInBufferCount | ||
|- | |- | ||
| 12 || [4.0.0+] | | 12 || [4.0.0+] SetAudioInDeviceGain | ||
|- | |- | ||
| 13 || [4.0.0+] | | 13 || [4.0.0+] GetAudioInDeviceGain | ||
|} | |} | ||
Line 215: | Line 215: | ||
| 7 || | | 7 || | ||
|- | |- | ||
| 8 || [3.0.0+] | | 8 || [3.0.0+] AppendFinalOutputRecorderBufferAuto | ||
|- | |- | ||
| 9 || [3.0.0+] | | 9 || [3.0.0+] GetReleasedFinalOutputRecorderBufferAuto | ||
|} | |} | ||
Line 231: | Line 231: | ||
| 1 || GetAudioRendererWorkBufferSize | | 1 || GetAudioRendererWorkBufferSize | ||
|- | |- | ||
| 2 || | | 2 || GetAudioDeviceService | ||
|- | |- | ||
| 3 || [3.0.0+] | | 3 || [3.0.0+] OpenAudioRendererAuto | ||
|- | |- | ||
| 4 || [4.0.0+] | | 4 || [4.0.0+] GetAudioDeviceServiceWithRevisionInfo | ||
|} | |} | ||
Line 265: | Line 265: | ||
| 9 || [[#GetAudioRendererRenderingTimeLimit]] | | 9 || [[#GetAudioRendererRenderingTimeLimit]] | ||
|- | |- | ||
| 10 || [3.0.0+] | | 10 || [3.0.0+] RequestUpdateAudioRendererAuto | ||
|- | |- | ||
| 11 || [3.0.0+] | | 11 || [3.0.0+] ExecuteAudioRendererRendering | ||
|} | |} | ||
Line 287: | Line 287: | ||
=== GetAudioRendererRenderingTimeLimit === | === GetAudioRendererRenderingTimeLimit === | ||
Returns the upper limit of the rendering time in percent. (u32) | Returns the upper limit of the rendering time in percent. (u32) | ||
== IAudioDevice == | |||
This is "nn::audio::detail::IAudioDevice". | |||
{| class="wikitable" border="1" | |||
|- | |||
! Cmd || Name | |||
|- | |||
| 0 || ListAudioDeviceName | |||
|- | |||
| 1 || SetAudioDeviceOutputVolume | |||
|- | |||
| 2 || GetAudioDeviceOutputVolume | |||
|- | |||
| 3 || GetActiveAudioDeviceName | |||
|- | |||
| 4 || QueryAudioDeviceSystemEvent | |||
|- | |||
| 5 || GetActiveChannelCount | |||
|- | |||
| 6 || [3.0.0+] ListAudioDeviceNameAuto | |||
|- | |||
| 7 || [3.0.0+] SetAudioDeviceOutputVolumeAuto | |||
|- | |||
| 8 || [3.0.0+] GetAudioDeviceOutputVolumeAuto | |||
|- | |||
| 10 || [3.0.0+] GetActiveAudioDeviceNameAuto | |||
|- | |||
| 11 || [3.0.0+] QueryAudioDeviceInputEvent | |||
|- | |||
| 12 || [3.0.0+] QueryAudioDeviceOutputEvent | |||
|} | |||
= audout:a = | = audout:a = | ||
Line 302: | Line 334: | ||
|- | |- | ||
| 3 || SetAudioOutsProcessMasterVolume | | 3 || SetAudioOutsProcessMasterVolume | ||
|- | |||
| 4 || [4.0.0+] GetAudioOutsProcessRecordVolume | |||
|- | |||
| 5 || [4.0.0+] SetAudioOutsProcessRecordVolume | |||
|} | |} | ||
Line 350: | Line 386: | ||
|- | |- | ||
| 5 || UnregisterAppletResourceUserId | | 5 || UnregisterAppletResourceUserId | ||
|- | |||
| 6 || [4.0.0+] GetAudioRenderersProcessRecordVolume | |||
|- | |||
| 7 || [4.0.0+] SetAudioRenderersProcessRecordVolume | |||
|} | |} | ||
Line 518: | Line 558: | ||
| 1 || [[#GetWorkBufferSize]] | | 1 || [[#GetWorkBufferSize]] | ||
|- | |- | ||
| 2 || [3.0.0+] | | 2 || [3.0.0+] InitializeMultiStream | ||
|- | |- | ||
| 3 || [3.0.0+] | | 3 || [3.0.0+] GetWorkBufferSizeMultiStream | ||
|} | |} | ||
Line 540: | Line 580: | ||
| 1 || [[#SetContext]] | | 1 || [[#SetContext]] | ||
|- | |- | ||
| 2 || [3.0.0+] | | 2 || [3.0.0+] | ||
|- | |- | ||
| 3 || [3.0.0+] | | 3 || [3.0.0+] | ||
|- | |- | ||
| 4 || [4.0.0+] | | 4 || [4.0.0+] |