service/audio: Update function tables
Updates function tables based off information provided by SwitchBrew.
This commit is contained in:
		@@ -12,6 +12,7 @@ namespace Service::Audio {
 | 
			
		||||
class IAudioIn final : public ServiceFramework<IAudioIn> {
 | 
			
		||||
public:
 | 
			
		||||
    IAudioIn() : ServiceFramework("IAudioIn") {
 | 
			
		||||
        // clang-format off
 | 
			
		||||
        static const FunctionInfo functions[] = {
 | 
			
		||||
            {0, nullptr, "GetAudioInState"},
 | 
			
		||||
            {1, nullptr, "StartAudioIn"},
 | 
			
		||||
@@ -28,16 +29,24 @@ public:
 | 
			
		||||
            {12, nullptr, "SetAudioInDeviceGain"},
 | 
			
		||||
            {13, nullptr, "GetAudioInDeviceGain"},
 | 
			
		||||
        };
 | 
			
		||||
        // clang-format on
 | 
			
		||||
 | 
			
		||||
        RegisterHandlers(functions);
 | 
			
		||||
    }
 | 
			
		||||
    ~IAudioIn() = default;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
AudInU::AudInU() : ServiceFramework("audin:u") {
 | 
			
		||||
    // clang-format off
 | 
			
		||||
    static const FunctionInfo functions[] = {
 | 
			
		||||
        {0, nullptr, "ListAudioIns"},    {1, nullptr, "OpenAudioIn"},      {2, nullptr, "Unknown"},
 | 
			
		||||
        {3, nullptr, "OpenAudioInAuto"}, {4, nullptr, "ListAudioInsAuto"},
 | 
			
		||||
        {0, nullptr, "ListAudioIns"},
 | 
			
		||||
        {1, nullptr, "OpenAudioIn"},
 | 
			
		||||
        {2, nullptr, "Unknown"},
 | 
			
		||||
        {3, nullptr, "OpenAudioInAuto"},
 | 
			
		||||
        {4, nullptr, "ListAudioInsAuto"},
 | 
			
		||||
    };
 | 
			
		||||
    // clang-format on
 | 
			
		||||
 | 
			
		||||
    RegisterHandlers(functions);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -12,6 +12,7 @@ namespace Service::Audio {
 | 
			
		||||
class IFinalOutputRecorder final : public ServiceFramework<IFinalOutputRecorder> {
 | 
			
		||||
public:
 | 
			
		||||
    IFinalOutputRecorder() : ServiceFramework("IFinalOutputRecorder") {
 | 
			
		||||
        // clang-format off
 | 
			
		||||
        static const FunctionInfo functions[] = {
 | 
			
		||||
            {0, nullptr, "GetFinalOutputRecorderState"},
 | 
			
		||||
            {1, nullptr, "StartFinalOutputRecorder"},
 | 
			
		||||
@@ -20,10 +21,13 @@ public:
 | 
			
		||||
            {4, nullptr, "RegisterBufferEvent"},
 | 
			
		||||
            {5, nullptr, "GetReleasedFinalOutputRecorderBuffer"},
 | 
			
		||||
            {6, nullptr, "ContainsFinalOutputRecorderBuffer"},
 | 
			
		||||
            {7, nullptr, "Unknown"},
 | 
			
		||||
            {7, nullptr, "GetFinalOutputRecorderBufferEndTime"},
 | 
			
		||||
            {8, nullptr, "AppendFinalOutputRecorderBufferAuto"},
 | 
			
		||||
            {9, nullptr, "GetReleasedFinalOutputRecorderBufferAuto"},
 | 
			
		||||
            {10, nullptr, "FlushFinalOutputRecorderBuffers"},
 | 
			
		||||
        };
 | 
			
		||||
        // clang-format on
 | 
			
		||||
 | 
			
		||||
        RegisterHandlers(functions);
 | 
			
		||||
    }
 | 
			
		||||
    ~IFinalOutputRecorder() = default;
 | 
			
		||||
 
 | 
			
		||||
@@ -229,14 +229,16 @@ private:
 | 
			
		||||
}; // namespace Audio
 | 
			
		||||
 | 
			
		||||
AudRenU::AudRenU() : ServiceFramework("audren:u") {
 | 
			
		||||
    // clang-format off
 | 
			
		||||
    static const FunctionInfo functions[] = {
 | 
			
		||||
        {0, &AudRenU::OpenAudioRenderer, "OpenAudioRenderer"},
 | 
			
		||||
        {1, &AudRenU::GetAudioRendererWorkBufferSize, "GetAudioRendererWorkBufferSize"},
 | 
			
		||||
        {2, &AudRenU::GetAudioDevice, "GetAudioDevice"},
 | 
			
		||||
        {2, &AudRenU::GetAudioDeviceService, "GetAudioDeviceService"},
 | 
			
		||||
        {3, nullptr, "OpenAudioRendererAuto"},
 | 
			
		||||
        {4, &AudRenU::GetAudioDeviceServiceWithRevisionInfo,
 | 
			
		||||
         "GetAudioDeviceServiceWithRevisionInfo"},
 | 
			
		||||
        {4, &AudRenU::GetAudioDeviceServiceWithRevisionInfo, "GetAudioDeviceServiceWithRevisionInfo"},
 | 
			
		||||
    };
 | 
			
		||||
    // clang-format on
 | 
			
		||||
 | 
			
		||||
    RegisterHandlers(functions);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -313,7 +315,7 @@ void AudRenU::GetAudioRendererWorkBufferSize(Kernel::HLERequestContext& ctx) {
 | 
			
		||||
    LOG_DEBUG(Service_Audio, "buffer_size=0x{:X}", output_sz);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void AudRenU::GetAudioDevice(Kernel::HLERequestContext& ctx) {
 | 
			
		||||
void AudRenU::GetAudioDeviceService(Kernel::HLERequestContext& ctx) {
 | 
			
		||||
    LOG_DEBUG(Service_Audio, "called");
 | 
			
		||||
 | 
			
		||||
    IPC::ResponseBuilder rb{ctx, 2, 0, 1};
 | 
			
		||||
 
 | 
			
		||||
@@ -20,7 +20,7 @@ public:
 | 
			
		||||
private:
 | 
			
		||||
    void OpenAudioRenderer(Kernel::HLERequestContext& ctx);
 | 
			
		||||
    void GetAudioRendererWorkBufferSize(Kernel::HLERequestContext& ctx);
 | 
			
		||||
    void GetAudioDevice(Kernel::HLERequestContext& ctx);
 | 
			
		||||
    void GetAudioDeviceService(Kernel::HLERequestContext& ctx);
 | 
			
		||||
    void GetAudioDeviceServiceWithRevisionInfo(Kernel::HLERequestContext& ctx);
 | 
			
		||||
 | 
			
		||||
    enum class AudioFeatures : u32 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user