2020-04-19 23:04:05 +02:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
2020-03-27 20:36:02 +01:00
|
|
|
// Copyright © 2020 Skyline Team and Contributors (https://github.com/skyline-emu/)
|
|
|
|
|
2020-01-24 23:04:16 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <services/base_service.h>
|
|
|
|
#include <services/serviceman.h>
|
|
|
|
|
2020-02-17 20:11:59 +01:00
|
|
|
namespace skyline::service::audio {
|
2020-01-24 23:04:16 +01:00
|
|
|
/**
|
2020-02-17 20:11:59 +01:00
|
|
|
* @brief IAudioRendererManager or audren:u is used to manage audio renderer outputs (https://switchbrew.org/wiki/Audio_services#audren:u)
|
2020-01-24 23:04:16 +01:00
|
|
|
*/
|
|
|
|
class IAudioRendererManager : public BaseService {
|
|
|
|
public:
|
|
|
|
IAudioRendererManager(const DeviceState &state, ServiceManager &manager);
|
|
|
|
|
|
|
|
/**
|
2020-02-17 20:11:59 +01:00
|
|
|
* @brief Creates a new IAudioRenderer object and returns a handle to it
|
2020-01-24 23:04:16 +01:00
|
|
|
*/
|
|
|
|
void OpenAudioRenderer(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
|
|
|
|
|
|
|
/**
|
2020-02-17 20:11:59 +01:00
|
|
|
* @brief Calculates the size of the buffer the guest needs to allocate for IAudioRendererManager
|
2020-01-24 23:04:16 +01:00
|
|
|
*/
|
|
|
|
void GetAudioRendererWorkBufferSize(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
2020-07-09 15:48:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief This returns a handle to an instance of an IAudioDevice (https://switchbrew.org/wiki/Audio_services#GetAudioDeviceService)
|
|
|
|
*/
|
|
|
|
void GetAudioDeviceService(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
2020-01-24 23:04:16 +01:00
|
|
|
};
|
|
|
|
}
|