summaryrefslogblamecommitdiffstats
path: root/src/core/hle/service/audio/audout_u.h
blob: dcaf64708a3eaf0a267c591d05db1aca196486b4 (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 AudioCore {
class AudioOut;
}

namespace Kernel {
class HLERequestContext;
}

namespace Service::Audio {

class IAudioOut;

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

private:
    std::shared_ptr<IAudioOut> audio_out_interface;
    std::unique_ptr<AudioCore::AudioOut> audio_core;

    void ListAudioOutsImpl(Kernel::HLERequestContext& ctx);
    void OpenAudioOutImpl(Kernel::HLERequestContext& ctx);
};

} // namespace Service::Audio