2014-11-12 21:13:08 +00:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-17 05:38:14 +00:00
|
|
|
// Licensed under GPLv2 or any later version
|
2014-11-12 21:13:08 +00:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Namespace CSND_SND
|
|
|
|
|
|
|
|
namespace CSND_SND {
|
|
|
|
|
|
|
|
class Interface : public Service::Interface {
|
|
|
|
public:
|
|
|
|
Interface();
|
2014-12-21 19:52:10 +00:00
|
|
|
|
2014-11-12 21:13:08 +00:00
|
|
|
std::string GetPortName() const override {
|
|
|
|
return "csnd:SND";
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2015-10-27 21:40:34 +00:00
|
|
|
struct Type0Command {
|
|
|
|
// command id and next command offset
|
|
|
|
u32 command_id;
|
|
|
|
u32 finished;
|
|
|
|
u32 flags;
|
|
|
|
u8 parameters[20];
|
|
|
|
};
|
|
|
|
|
|
|
|
void Initialize(Service::Interface* self);
|
|
|
|
void ExecuteType0Commands(Service::Interface* self);
|
|
|
|
void AcquireSoundChannels(Service::Interface* self);
|
|
|
|
void Shutdown(Service::Interface* self);
|
|
|
|
|
2014-11-12 21:13:08 +00:00
|
|
|
} // namespace
|