summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Hexagon122018-04-10 18:51:50 +0300
committerGravatar GitHub2018-04-10 18:51:50 +0300
commita886e3bc2a6590e476caaedbbb57718516d88f81 (patch)
tree7ac49f90ec17e917cb26872256d8a669815ce175 /src
parentUpdated audin with more service names. (diff)
downloadyuzu-a886e3bc2a6590e476caaedbbb57718516d88f81.tar.gz
yuzu-a886e3bc2a6590e476caaedbbb57718516d88f81.tar.xz
yuzu-a886e3bc2a6590e476caaedbbb57718516d88f81.zip
Updated audout with more service names.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/audio/audout_u.cpp29
1 files changed, 16 insertions, 13 deletions
diff --git a/src/core/hle/service/audio/audout_u.cpp b/src/core/hle/service/audio/audout_u.cpp
index 8e935cb7f..db6e6647c 100644
--- a/src/core/hle/service/audio/audout_u.cpp
+++ b/src/core/hle/service/audio/audout_u.cpp
@@ -25,15 +25,18 @@ class IAudioOut final : public ServiceFramework<IAudioOut> {
25public: 25public:
26 IAudioOut() : ServiceFramework("IAudioOut"), audio_out_state(AudioState::Stopped) { 26 IAudioOut() : ServiceFramework("IAudioOut"), audio_out_state(AudioState::Stopped) {
27 static const FunctionInfo functions[] = { 27 static const FunctionInfo functions[] = {
28 {0x0, &IAudioOut::GetAudioOutState, "GetAudioOutState"}, 28 {0, &IAudioOut::GetAudioOutState, "GetAudioOutState"},
29 {0x1, &IAudioOut::StartAudioOut, "StartAudioOut"}, 29 {1, &IAudioOut::StartAudioOut, "StartAudioOut"},
30 {0x2, &IAudioOut::StopAudioOut, "StopAudioOut"}, 30 {2, &IAudioOut::StopAudioOut, "StopAudioOut"},
31 {0x3, &IAudioOut::AppendAudioOutBuffer_1, "AppendAudioOutBuffer_1"}, 31 {3, &IAudioOut::AppendAudioOutBuffer, "AppendAudioOutBuffer"},
32 {0x4, &IAudioOut::RegisterBufferEvent, "RegisterBufferEvent"}, 32 {4, &IAudioOut::RegisterBufferEvent, "RegisterBufferEvent"},
33 {0x5, &IAudioOut::GetReleasedAudioOutBuffer_1, "GetReleasedAudioOutBuffer_1"}, 33 {5, &IAudioOut::GetReleasedAudioOutBuffer, "GetReleasedAudioOutBuffer"},
34 {0x6, nullptr, "ContainsAudioOutBuffer"}, 34 {6, nullptr, "ContainsAudioOutBuffer"},
35 {0x7, nullptr, "AppendAudioOutBuffer_2"}, 35 {7, nullptr, "AppendAudioOutBufferAuto"},
36 {0x8, nullptr, "GetReleasedAudioOutBuffer_2"}, 36 {8, nullptr, "GetReleasedAudioOutBufferAuto"},
37 {9, nullptr, "GetAudioOutBufferCount"},
38 {10, nullptr, "GetAudioOutPlayedSampleCount"},
39 {11, nullptr, "FlushAudioOutBuffers"},
37 }; 40 };
38 RegisterHandlers(functions); 41 RegisterHandlers(functions);
39 42
@@ -94,7 +97,7 @@ private:
94 rb.PushCopyObjects(buffer_event); 97 rb.PushCopyObjects(buffer_event);
95 } 98 }
96 99
97 void AppendAudioOutBuffer_1(Kernel::HLERequestContext& ctx) { 100 void AppendAudioOutBuffer(Kernel::HLERequestContext& ctx) {
98 LOG_WARNING(Service_Audio, "(STUBBED) called"); 101 LOG_WARNING(Service_Audio, "(STUBBED) called");
99 IPC::RequestParser rp{ctx}; 102 IPC::RequestParser rp{ctx};
100 103
@@ -105,7 +108,7 @@ private:
105 rb.Push(RESULT_SUCCESS); 108 rb.Push(RESULT_SUCCESS);
106 } 109 }
107 110
108 void GetReleasedAudioOutBuffer_1(Kernel::HLERequestContext& ctx) { 111 void GetReleasedAudioOutBuffer(Kernel::HLERequestContext& ctx) {
109 LOG_WARNING(Service_Audio, "(STUBBED) called"); 112 LOG_WARNING(Service_Audio, "(STUBBED) called");
110 113
111 // TODO(st4rk): This is how libtransistor currently implements the 114 // TODO(st4rk): This is how libtransistor currently implements the
@@ -196,8 +199,8 @@ void AudOutU::OpenAudioOut(Kernel::HLERequestContext& ctx) {
196AudOutU::AudOutU() : ServiceFramework("audout:u") { 199AudOutU::AudOutU() : ServiceFramework("audout:u") {
197 static const FunctionInfo functions[] = {{0x00000000, &AudOutU::ListAudioOuts, "ListAudioOuts"}, 200 static const FunctionInfo functions[] = {{0x00000000, &AudOutU::ListAudioOuts, "ListAudioOuts"},
198 {0x00000001, &AudOutU::OpenAudioOut, "OpenAudioOut"}, 201 {0x00000001, &AudOutU::OpenAudioOut, "OpenAudioOut"},
199 {0x00000002, nullptr, "Unknown2"}, 202 {0x00000002, nullptr, "ListAudioOutsAuto"},
200 {0x00000003, nullptr, "Unknown3"}}; 203 {0x00000003, nullptr, "OpenAudioOutAuto"}};
201 RegisterHandlers(functions); 204 RegisterHandlers(functions);
202} 205}
203 206