|
|
@ -35,9 +35,10 @@ public:
|
|
|
|
AudioCore::AudioRendererParameterInternal& params,
|
|
|
|
AudioCore::AudioRendererParameterInternal& params,
|
|
|
|
Kernel::KTransferMemory* transfer_memory, u64 transfer_memory_size,
|
|
|
|
Kernel::KTransferMemory* transfer_memory, u64 transfer_memory_size,
|
|
|
|
u32 process_handle, u64 applet_resource_user_id, s32 session_id)
|
|
|
|
u32 process_handle, u64 applet_resource_user_id, s32 session_id)
|
|
|
|
: ServiceFramework{system_, "IAudioRenderer"}, service_context{system_, "IAudioRenderer"},
|
|
|
|
: ServiceFramework{system_, "IAudioRenderer", ServiceThreadType::CreateNew},
|
|
|
|
rendered_event{service_context.CreateEvent("IAudioRendererEvent")}, manager{manager_},
|
|
|
|
service_context{system_, "IAudioRenderer"}, rendered_event{service_context.CreateEvent(
|
|
|
|
impl{std::make_unique<Renderer>(system_, manager, rendered_event)} {
|
|
|
|
"IAudioRendererEvent")},
|
|
|
|
|
|
|
|
manager{manager_}, impl{std::make_unique<Renderer>(system_, manager, rendered_event)} {
|
|
|
|
// clang-format off
|
|
|
|
// clang-format off
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
{0, &IAudioRenderer::GetSampleRate, "GetSampleRate"},
|
|
|
|
{0, &IAudioRenderer::GetSampleRate, "GetSampleRate"},
|
|
|
@ -242,8 +243,10 @@ class IAudioDevice final : public ServiceFramework<IAudioDevice> {
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
explicit IAudioDevice(Core::System& system_, u64 applet_resource_user_id, u32 revision,
|
|
|
|
explicit IAudioDevice(Core::System& system_, u64 applet_resource_user_id, u32 revision,
|
|
|
|
u32 device_num)
|
|
|
|
u32 device_num)
|
|
|
|
: ServiceFramework{system_, "IAudioDevice"}, service_context{system_, "IAudioDevice"},
|
|
|
|
: ServiceFramework{system_, "IAudioDevice", ServiceThreadType::CreateNew},
|
|
|
|
impl{std::make_unique<AudioDevice>(system_, applet_resource_user_id, revision)},
|
|
|
|
service_context{system_, "IAudioDevice"}, impl{std::make_unique<AudioDevice>(
|
|
|
|
|
|
|
|
system_, applet_resource_user_id,
|
|
|
|
|
|
|
|
revision)},
|
|
|
|
event{service_context.CreateEvent(fmt::format("IAudioDeviceEvent-{}", device_num))} {
|
|
|
|
event{service_context.CreateEvent(fmt::format("IAudioDeviceEvent-{}", device_num))} {
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
{0, &IAudioDevice::ListAudioDeviceName, "ListAudioDeviceName"},
|
|
|
|
{0, &IAudioDevice::ListAudioDeviceName, "ListAudioDeviceName"},
|
|
|
@ -418,7 +421,7 @@ private:
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
AudRenU::AudRenU(Core::System& system_)
|
|
|
|
AudRenU::AudRenU(Core::System& system_)
|
|
|
|
: ServiceFramework{system_, "audren:u"},
|
|
|
|
: ServiceFramework{system_, "audren:u", ServiceThreadType::CreateNew},
|
|
|
|
service_context{system_, "audren:u"}, impl{std::make_unique<Manager>(system_)} {
|
|
|
|
service_context{system_, "audren:u"}, impl{std::make_unique<Manager>(system_)} {
|
|
|
|
// clang-format off
|
|
|
|
// clang-format off
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|