service: Use nested namespace specifiers where applicable
Tidies up namespace declarations
This commit is contained in:
parent
17ad56c1dc
commit
ccca5e7c28
136 changed files with 273 additions and 570 deletions
|
@ -7,8 +7,7 @@
|
|||
#include "core/hle/kernel/hle_ipc.h"
|
||||
#include "core/hle/service/audio/audin_u.h"
|
||||
|
||||
namespace Service {
|
||||
namespace Audio {
|
||||
namespace Service::Audio {
|
||||
|
||||
class IAudioIn final : public ServiceFramework<IAudioIn> {
|
||||
public:
|
||||
|
@ -44,5 +43,4 @@ AudInU::AudInU() : ServiceFramework("audin:u") {
|
|||
RegisterHandlers(functions);
|
||||
}
|
||||
|
||||
} // namespace Audio
|
||||
} // namespace Service
|
||||
} // namespace Service::Audio
|
||||
|
|
|
@ -10,8 +10,7 @@ namespace Kernel {
|
|||
class HLERequestContext;
|
||||
}
|
||||
|
||||
namespace Service {
|
||||
namespace Audio {
|
||||
namespace Service::Audio {
|
||||
|
||||
class AudInU final : public ServiceFramework<AudInU> {
|
||||
public:
|
||||
|
@ -19,5 +18,4 @@ public:
|
|||
~AudInU() = default;
|
||||
};
|
||||
|
||||
} // namespace Audio
|
||||
} // namespace Service
|
||||
} // namespace Service::Audio
|
||||
|
|
|
@ -9,8 +9,7 @@
|
|||
#include "core/hle/service/audio/audren_u.h"
|
||||
#include "core/hle/service/audio/codecctl.h"
|
||||
|
||||
namespace Service {
|
||||
namespace Audio {
|
||||
namespace Service::Audio {
|
||||
|
||||
void InstallInterfaces(SM::ServiceManager& service_manager) {
|
||||
std::make_shared<AudOutU>()->InstallAsService(service_manager);
|
||||
|
@ -20,5 +19,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
|
|||
std::make_shared<CodecCtl>()->InstallAsService(service_manager);
|
||||
}
|
||||
|
||||
} // namespace Audio
|
||||
} // namespace Service
|
||||
} // namespace Service::Audio
|
||||
|
|
|
@ -6,11 +6,9 @@
|
|||
|
||||
#include "core/hle/service/service.h"
|
||||
|
||||
namespace Service {
|
||||
namespace Audio {
|
||||
namespace Service::Audio {
|
||||
|
||||
/// Registers all Audio services with the specified service manager.
|
||||
void InstallInterfaces(SM::ServiceManager& service_manager);
|
||||
|
||||
} // namespace Audio
|
||||
} // namespace Service
|
||||
} // namespace Service::Audio
|
||||
|
|
|
@ -10,8 +10,7 @@
|
|||
#include "core/hle/kernel/hle_ipc.h"
|
||||
#include "core/hle/service/audio/audout_u.h"
|
||||
|
||||
namespace Service {
|
||||
namespace Audio {
|
||||
namespace Service::Audio {
|
||||
|
||||
/// Switch sample rate frequency
|
||||
constexpr u32 sample_rate{48000};
|
||||
|
@ -204,5 +203,4 @@ AudOutU::AudOutU() : ServiceFramework("audout:u") {
|
|||
RegisterHandlers(functions);
|
||||
}
|
||||
|
||||
} // namespace Audio
|
||||
} // namespace Service
|
||||
} // namespace Service::Audio
|
||||
|
|
|
@ -10,8 +10,7 @@ namespace Kernel {
|
|||
class HLERequestContext;
|
||||
}
|
||||
|
||||
namespace Service {
|
||||
namespace Audio {
|
||||
namespace Service::Audio {
|
||||
|
||||
class IAudioOut;
|
||||
|
||||
|
@ -37,5 +36,4 @@ private:
|
|||
};
|
||||
};
|
||||
|
||||
} // namespace Audio
|
||||
} // namespace Service
|
||||
} // namespace Service::Audio
|
||||
|
|
|
@ -7,8 +7,7 @@
|
|||
#include "core/hle/kernel/hle_ipc.h"
|
||||
#include "core/hle/service/audio/audrec_u.h"
|
||||
|
||||
namespace Service {
|
||||
namespace Audio {
|
||||
namespace Service::Audio {
|
||||
|
||||
class IFinalOutputRecorder final : public ServiceFramework<IFinalOutputRecorder> {
|
||||
public:
|
||||
|
@ -36,5 +35,4 @@ AudRecU::AudRecU() : ServiceFramework("audrec:u") {
|
|||
RegisterHandlers(functions);
|
||||
}
|
||||
|
||||
} // namespace Audio
|
||||
} // namespace Service
|
||||
} // namespace Service::Audio
|
||||
|
|
|
@ -10,8 +10,7 @@ namespace Kernel {
|
|||
class HLERequestContext;
|
||||
}
|
||||
|
||||
namespace Service {
|
||||
namespace Audio {
|
||||
namespace Service::Audio {
|
||||
|
||||
class AudRecU final : public ServiceFramework<AudRecU> {
|
||||
public:
|
||||
|
@ -19,5 +18,4 @@ public:
|
|||
~AudRecU() = default;
|
||||
};
|
||||
|
||||
} // namespace Audio
|
||||
} // namespace Service
|
||||
} // namespace Service::Audio
|
||||
|
|
|
@ -9,8 +9,7 @@
|
|||
#include "core/hle/kernel/hle_ipc.h"
|
||||
#include "core/hle/service/audio/audren_u.h"
|
||||
|
||||
namespace Service {
|
||||
namespace Audio {
|
||||
namespace Service::Audio {
|
||||
|
||||
/// TODO(bunnei): Find a proper value for the audio_ticks
|
||||
constexpr u64 audio_ticks{static_cast<u64>(BASE_CLOCK_RATE / 200)};
|
||||
|
@ -272,5 +271,4 @@ void AudRenU::GetAudioDevice(Kernel::HLERequestContext& ctx) {
|
|||
LOG_DEBUG(Service_Audio, "called");
|
||||
}
|
||||
|
||||
} // namespace Audio
|
||||
} // namespace Service
|
||||
} // namespace Service::Audio
|
||||
|
|
|
@ -10,8 +10,7 @@ namespace Kernel {
|
|||
class HLERequestContext;
|
||||
}
|
||||
|
||||
namespace Service {
|
||||
namespace Audio {
|
||||
namespace Service::Audio {
|
||||
|
||||
class AudRenU final : public ServiceFramework<AudRenU> {
|
||||
public:
|
||||
|
@ -24,5 +23,4 @@ private:
|
|||
void GetAudioDevice(Kernel::HLERequestContext& ctx);
|
||||
};
|
||||
|
||||
} // namespace Audio
|
||||
} // namespace Service
|
||||
} // namespace Service::Audio
|
||||
|
|
|
@ -7,8 +7,7 @@
|
|||
#include "core/hle/kernel/hle_ipc.h"
|
||||
#include "core/hle/service/audio/codecctl.h"
|
||||
|
||||
namespace Service {
|
||||
namespace Audio {
|
||||
namespace Service::Audio {
|
||||
|
||||
CodecCtl::CodecCtl() : ServiceFramework("codecctl") {
|
||||
static const FunctionInfo functions[] = {
|
||||
|
@ -29,5 +28,4 @@ CodecCtl::CodecCtl() : ServiceFramework("codecctl") {
|
|||
RegisterHandlers(functions);
|
||||
}
|
||||
|
||||
} // namespace Audio
|
||||
} // namespace Service
|
||||
} // namespace Service::Audio
|
||||
|
|
|
@ -10,8 +10,7 @@ namespace Kernel {
|
|||
class HLERequestContext;
|
||||
}
|
||||
|
||||
namespace Service {
|
||||
namespace Audio {
|
||||
namespace Service::Audio {
|
||||
|
||||
class CodecCtl final : public ServiceFramework<CodecCtl> {
|
||||
public:
|
||||
|
@ -19,5 +18,4 @@ public:
|
|||
~CodecCtl() = default;
|
||||
};
|
||||
|
||||
} // namespace Audio
|
||||
} // namespace Service
|
||||
} // namespace Service::Audio
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue