mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-27 13:21:21 -08:00
Audout "Auto" functions
Audout autos are identical to their counterpart except for the buffer type which yuzu already handles for us.
This commit is contained in:
parent
7230ceb584
commit
706892de7d
@ -27,12 +27,12 @@ public:
|
|||||||
{0, &IAudioOut::GetAudioOutState, "GetAudioOutState"},
|
{0, &IAudioOut::GetAudioOutState, "GetAudioOutState"},
|
||||||
{1, &IAudioOut::StartAudioOut, "StartAudioOut"},
|
{1, &IAudioOut::StartAudioOut, "StartAudioOut"},
|
||||||
{2, &IAudioOut::StopAudioOut, "StopAudioOut"},
|
{2, &IAudioOut::StopAudioOut, "StopAudioOut"},
|
||||||
{3, &IAudioOut::AppendAudioOutBuffer, "AppendAudioOutBuffer"},
|
{3, &IAudioOut::AppendAudioOutBufferImpl, "AppendAudioOutBuffer"},
|
||||||
{4, &IAudioOut::RegisterBufferEvent, "RegisterBufferEvent"},
|
{4, &IAudioOut::RegisterBufferEvent, "RegisterBufferEvent"},
|
||||||
{5, &IAudioOut::GetReleasedAudioOutBuffer, "GetReleasedAudioOutBuffer"},
|
{5, &IAudioOut::GetReleasedAudioOutBufferImpl, "GetReleasedAudioOutBuffer"},
|
||||||
{6, nullptr, "ContainsAudioOutBuffer"},
|
{6, nullptr, "ContainsAudioOutBuffer"},
|
||||||
{7, nullptr, "AppendAudioOutBufferAuto"},
|
{7, &IAudioOut::AppendAudioOutBufferImpl, "AppendAudioOutBufferAuto"},
|
||||||
{8, nullptr, "GetReleasedAudioOutBufferAuto"},
|
{8, &IAudioOut::GetReleasedAudioOutBufferImpl, "GetReleasedAudioOutBufferAuto"},
|
||||||
{9, nullptr, "GetAudioOutBufferCount"},
|
{9, nullptr, "GetAudioOutBufferCount"},
|
||||||
{10, nullptr, "GetAudioOutPlayedSampleCount"},
|
{10, nullptr, "GetAudioOutPlayedSampleCount"},
|
||||||
{11, nullptr, "FlushAudioOutBuffers"},
|
{11, nullptr, "FlushAudioOutBuffers"},
|
||||||
@ -96,7 +96,7 @@ private:
|
|||||||
rb.PushCopyObjects(buffer_event);
|
rb.PushCopyObjects(buffer_event);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AppendAudioOutBuffer(Kernel::HLERequestContext& ctx) {
|
void AppendAudioOutBufferImpl(Kernel::HLERequestContext& ctx) {
|
||||||
LOG_WARNING(Service_Audio, "(STUBBED) called");
|
LOG_WARNING(Service_Audio, "(STUBBED) called");
|
||||||
IPC::RequestParser rp{ctx};
|
IPC::RequestParser rp{ctx};
|
||||||
|
|
||||||
@ -107,7 +107,7 @@ private:
|
|||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetReleasedAudioOutBuffer(Kernel::HLERequestContext& ctx) {
|
void GetReleasedAudioOutBufferImpl(Kernel::HLERequestContext& ctx) {
|
||||||
LOG_WARNING(Service_Audio, "(STUBBED) called");
|
LOG_WARNING(Service_Audio, "(STUBBED) called");
|
||||||
|
|
||||||
// TODO(st4rk): This is how libtransistor currently implements the
|
// TODO(st4rk): This is how libtransistor currently implements the
|
||||||
@ -163,7 +163,7 @@ private:
|
|||||||
AudioState audio_out_state;
|
AudioState audio_out_state;
|
||||||
};
|
};
|
||||||
|
|
||||||
void AudOutU::ListAudioOuts(Kernel::HLERequestContext& ctx) {
|
void AudOutU::ListAudioOutsImpl(Kernel::HLERequestContext& ctx) {
|
||||||
LOG_WARNING(Service_Audio, "(STUBBED) called");
|
LOG_WARNING(Service_Audio, "(STUBBED) called");
|
||||||
IPC::RequestParser rp{ctx};
|
IPC::RequestParser rp{ctx};
|
||||||
|
|
||||||
@ -179,7 +179,7 @@ void AudOutU::ListAudioOuts(Kernel::HLERequestContext& ctx) {
|
|||||||
rb.Push<u32>(1);
|
rb.Push<u32>(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudOutU::OpenAudioOut(Kernel::HLERequestContext& ctx) {
|
void AudOutU::OpenAudioOutImpl(Kernel::HLERequestContext& ctx) {
|
||||||
LOG_WARNING(Service_Audio, "(STUBBED) called");
|
LOG_WARNING(Service_Audio, "(STUBBED) called");
|
||||||
|
|
||||||
if (!audio_out_interface) {
|
if (!audio_out_interface) {
|
||||||
@ -196,10 +196,10 @@ void AudOutU::OpenAudioOut(Kernel::HLERequestContext& ctx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
AudOutU::AudOutU() : ServiceFramework("audout:u") {
|
AudOutU::AudOutU() : ServiceFramework("audout:u") {
|
||||||
static const FunctionInfo functions[] = {{0, &AudOutU::ListAudioOuts, "ListAudioOuts"},
|
static const FunctionInfo functions[] = {{0, &AudOutU::ListAudioOutsImpl, "ListAudioOuts"},
|
||||||
{1, &AudOutU::OpenAudioOut, "OpenAudioOut"},
|
{1, &AudOutU::OpenAudioOutImpl, "OpenAudioOut"},
|
||||||
{2, nullptr, "ListAudioOutsAuto"},
|
{2, &AudOutU::ListAudioOutsImpl, "ListAudioOutsAuto"},
|
||||||
{3, nullptr, "OpenAudioOutAuto"}};
|
{3, &AudOutU::OpenAudioOutImpl, "OpenAudioOutAuto"}};
|
||||||
RegisterHandlers(functions);
|
RegisterHandlers(functions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,8 +22,8 @@ public:
|
|||||||
private:
|
private:
|
||||||
std::shared_ptr<IAudioOut> audio_out_interface;
|
std::shared_ptr<IAudioOut> audio_out_interface;
|
||||||
|
|
||||||
void ListAudioOuts(Kernel::HLERequestContext& ctx);
|
void ListAudioOutsImpl(Kernel::HLERequestContext& ctx);
|
||||||
void OpenAudioOut(Kernel::HLERequestContext& ctx);
|
void OpenAudioOutImpl(Kernel::HLERequestContext& ctx);
|
||||||
|
|
||||||
enum class PcmFormat : u32 {
|
enum class PcmFormat : u32 {
|
||||||
Invalid = 0,
|
Invalid = 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user