summaryrefslogblamecommitdiffstats
path: root/src/core/hle/service/audio/audout_u.h
blob: 1f9bb9bcf96b267f9e89c6638cc82a1d7e852758 (plain) (tree)
1
2
3
4
5
6
7
8





                                            

                                     



                        
                          
 

                





                                                        

                                                   
                                                       
                                                      









                                

  
                             
// Copyright 2018 yuzu emulator team
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#pragma once

#include "core/hle/service/service.h"

namespace Kernel {
class HLERequestContext;
}

namespace Service::Audio {

class IAudioOut;

class AudOutU final : public ServiceFramework<AudOutU> {
public:
    AudOutU();
    ~AudOutU() = default;

private:
    std::shared_ptr<IAudioOut> audio_out_interface;

    void ListAudioOuts(Kernel::HLERequestContext& ctx);
    void OpenAudioOut(Kernel::HLERequestContext& ctx);

    enum class PcmFormat : u32 {
        Invalid = 0,
        Int8 = 1,
        Int16 = 2,
        Int24 = 3,
        Int32 = 4,
        PcmFloat = 5,
        Adpcm = 6,
    };
};

} // namespace Service::Audio