diff options
| author | 2018-04-19 21:41:44 -0400 | |
|---|---|---|
| committer | 2018-04-19 22:20:28 -0400 | |
| commit | ccca5e7c2872d477cc7bef73ed141dc093b106ef (patch) | |
| tree | 17f5db413993ed4a6f1fec0ac27fb20b44328459 /src/core/hle/service/audio | |
| parent | Merge pull request #356 from lioncash/shader (diff) | |
| download | yuzu-ccca5e7c2872d477cc7bef73ed141dc093b106ef.tar.gz yuzu-ccca5e7c2872d477cc7bef73ed141dc093b106ef.tar.xz yuzu-ccca5e7c2872d477cc7bef73ed141dc093b106ef.zip | |
service: Use nested namespace specifiers where applicable
Tidies up namespace declarations
Diffstat (limited to 'src/core/hle/service/audio')
| -rw-r--r-- | src/core/hle/service/audio/audin_u.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/service/audio/audin_u.h | 6 | ||||
| -rw-r--r-- | src/core/hle/service/audio/audio.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/service/audio/audio.h | 6 | ||||
| -rw-r--r-- | src/core/hle/service/audio/audout_u.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/service/audio/audout_u.h | 6 | ||||
| -rw-r--r-- | src/core/hle/service/audio/audrec_u.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/service/audio/audrec_u.h | 6 | ||||
| -rw-r--r-- | src/core/hle/service/audio/audren_u.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/service/audio/audren_u.h | 6 | ||||
| -rw-r--r-- | src/core/hle/service/audio/codecctl.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/service/audio/codecctl.h | 6 |
12 files changed, 24 insertions, 48 deletions
diff --git a/src/core/hle/service/audio/audin_u.cpp b/src/core/hle/service/audio/audin_u.cpp index 3c495b3a0..dca2bfb92 100644 --- a/src/core/hle/service/audio/audin_u.cpp +++ b/src/core/hle/service/audio/audin_u.cpp | |||
| @@ -7,8 +7,7 @@ | |||
| 7 | #include "core/hle/kernel/hle_ipc.h" | 7 | #include "core/hle/kernel/hle_ipc.h" |
| 8 | #include "core/hle/service/audio/audin_u.h" | 8 | #include "core/hle/service/audio/audin_u.h" |
| 9 | 9 | ||
| 10 | namespace Service { | 10 | namespace Service::Audio { |
| 11 | namespace Audio { | ||
| 12 | 11 | ||
| 13 | class IAudioIn final : public ServiceFramework<IAudioIn> { | 12 | class IAudioIn final : public ServiceFramework<IAudioIn> { |
| 14 | public: | 13 | public: |
| @@ -44,5 +43,4 @@ AudInU::AudInU() : ServiceFramework("audin:u") { | |||
| 44 | RegisterHandlers(functions); | 43 | RegisterHandlers(functions); |
| 45 | } | 44 | } |
| 46 | 45 | ||
| 47 | } // namespace Audio | 46 | } // namespace Service::Audio |
| 48 | } // namespace Service | ||
diff --git a/src/core/hle/service/audio/audin_u.h b/src/core/hle/service/audio/audin_u.h index 2b8576756..2e65efb5b 100644 --- a/src/core/hle/service/audio/audin_u.h +++ b/src/core/hle/service/audio/audin_u.h | |||
| @@ -10,8 +10,7 @@ namespace Kernel { | |||
| 10 | class HLERequestContext; | 10 | class HLERequestContext; |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | namespace Service { | 13 | namespace Service::Audio { |
| 14 | namespace Audio { | ||
| 15 | 14 | ||
| 16 | class AudInU final : public ServiceFramework<AudInU> { | 15 | class AudInU final : public ServiceFramework<AudInU> { |
| 17 | public: | 16 | public: |
| @@ -19,5 +18,4 @@ public: | |||
| 19 | ~AudInU() = default; | 18 | ~AudInU() = default; |
| 20 | }; | 19 | }; |
| 21 | 20 | ||
| 22 | } // namespace Audio | 21 | } // namespace Service::Audio |
| 23 | } // namespace Service | ||
diff --git a/src/core/hle/service/audio/audio.cpp b/src/core/hle/service/audio/audio.cpp index 3f7fb44eb..92f910b5f 100644 --- a/src/core/hle/service/audio/audio.cpp +++ b/src/core/hle/service/audio/audio.cpp | |||
| @@ -9,8 +9,7 @@ | |||
| 9 | #include "core/hle/service/audio/audren_u.h" | 9 | #include "core/hle/service/audio/audren_u.h" |
| 10 | #include "core/hle/service/audio/codecctl.h" | 10 | #include "core/hle/service/audio/codecctl.h" |
| 11 | 11 | ||
| 12 | namespace Service { | 12 | namespace Service::Audio { |
| 13 | namespace Audio { | ||
| 14 | 13 | ||
| 15 | void InstallInterfaces(SM::ServiceManager& service_manager) { | 14 | void InstallInterfaces(SM::ServiceManager& service_manager) { |
| 16 | std::make_shared<AudOutU>()->InstallAsService(service_manager); | 15 | std::make_shared<AudOutU>()->InstallAsService(service_manager); |
| @@ -20,5 +19,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) { | |||
| 20 | std::make_shared<CodecCtl>()->InstallAsService(service_manager); | 19 | std::make_shared<CodecCtl>()->InstallAsService(service_manager); |
| 21 | } | 20 | } |
| 22 | 21 | ||
| 23 | } // namespace Audio | 22 | } // namespace Service::Audio |
| 24 | } // namespace Service | ||
diff --git a/src/core/hle/service/audio/audio.h b/src/core/hle/service/audio/audio.h index cbd56b2a8..95e5691f7 100644 --- a/src/core/hle/service/audio/audio.h +++ b/src/core/hle/service/audio/audio.h | |||
| @@ -6,11 +6,9 @@ | |||
| 6 | 6 | ||
| 7 | #include "core/hle/service/service.h" | 7 | #include "core/hle/service/service.h" |
| 8 | 8 | ||
| 9 | namespace Service { | 9 | namespace Service::Audio { |
| 10 | namespace Audio { | ||
| 11 | 10 | ||
| 12 | /// Registers all Audio services with the specified service manager. | 11 | /// Registers all Audio services with the specified service manager. |
| 13 | void InstallInterfaces(SM::ServiceManager& service_manager); | 12 | void InstallInterfaces(SM::ServiceManager& service_manager); |
| 14 | 13 | ||
| 15 | } // namespace Audio | 14 | } // namespace Service::Audio |
| 16 | } // namespace Service | ||
diff --git a/src/core/hle/service/audio/audout_u.cpp b/src/core/hle/service/audio/audout_u.cpp index db6e6647c..2d7f8cb04 100644 --- a/src/core/hle/service/audio/audout_u.cpp +++ b/src/core/hle/service/audio/audout_u.cpp | |||
| @@ -10,8 +10,7 @@ | |||
| 10 | #include "core/hle/kernel/hle_ipc.h" | 10 | #include "core/hle/kernel/hle_ipc.h" |
| 11 | #include "core/hle/service/audio/audout_u.h" | 11 | #include "core/hle/service/audio/audout_u.h" |
| 12 | 12 | ||
| 13 | namespace Service { | 13 | namespace Service::Audio { |
| 14 | namespace Audio { | ||
| 15 | 14 | ||
| 16 | /// Switch sample rate frequency | 15 | /// Switch sample rate frequency |
| 17 | constexpr u32 sample_rate{48000}; | 16 | constexpr u32 sample_rate{48000}; |
| @@ -204,5 +203,4 @@ AudOutU::AudOutU() : ServiceFramework("audout:u") { | |||
| 204 | RegisterHandlers(functions); | 203 | RegisterHandlers(functions); |
| 205 | } | 204 | } |
| 206 | 205 | ||
| 207 | } // namespace Audio | 206 | } // namespace Service::Audio |
| 208 | } // namespace Service | ||
diff --git a/src/core/hle/service/audio/audout_u.h b/src/core/hle/service/audio/audout_u.h index 7fbce2225..1f9bb9bcf 100644 --- a/src/core/hle/service/audio/audout_u.h +++ b/src/core/hle/service/audio/audout_u.h | |||
| @@ -10,8 +10,7 @@ namespace Kernel { | |||
| 10 | class HLERequestContext; | 10 | class HLERequestContext; |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | namespace Service { | 13 | namespace Service::Audio { |
| 14 | namespace Audio { | ||
| 15 | 14 | ||
| 16 | class IAudioOut; | 15 | class IAudioOut; |
| 17 | 16 | ||
| @@ -37,5 +36,4 @@ private: | |||
| 37 | }; | 36 | }; |
| 38 | }; | 37 | }; |
| 39 | 38 | ||
| 40 | } // namespace Audio | 39 | } // namespace Service::Audio |
| 41 | } // namespace Service | ||
diff --git a/src/core/hle/service/audio/audrec_u.cpp b/src/core/hle/service/audio/audrec_u.cpp index 953104f19..b2be10919 100644 --- a/src/core/hle/service/audio/audrec_u.cpp +++ b/src/core/hle/service/audio/audrec_u.cpp | |||
| @@ -7,8 +7,7 @@ | |||
| 7 | #include "core/hle/kernel/hle_ipc.h" | 7 | #include "core/hle/kernel/hle_ipc.h" |
| 8 | #include "core/hle/service/audio/audrec_u.h" | 8 | #include "core/hle/service/audio/audrec_u.h" |
| 9 | 9 | ||
| 10 | namespace Service { | 10 | namespace Service::Audio { |
| 11 | namespace Audio { | ||
| 12 | 11 | ||
| 13 | class IFinalOutputRecorder final : public ServiceFramework<IFinalOutputRecorder> { | 12 | class IFinalOutputRecorder final : public ServiceFramework<IFinalOutputRecorder> { |
| 14 | public: | 13 | public: |
| @@ -36,5 +35,4 @@ AudRecU::AudRecU() : ServiceFramework("audrec:u") { | |||
| 36 | RegisterHandlers(functions); | 35 | RegisterHandlers(functions); |
| 37 | } | 36 | } |
| 38 | 37 | ||
| 39 | } // namespace Audio | 38 | } // namespace Service::Audio |
| 40 | } // namespace Service | ||
diff --git a/src/core/hle/service/audio/audrec_u.h b/src/core/hle/service/audio/audrec_u.h index c31e412c1..46daa33a4 100644 --- a/src/core/hle/service/audio/audrec_u.h +++ b/src/core/hle/service/audio/audrec_u.h | |||
| @@ -10,8 +10,7 @@ namespace Kernel { | |||
| 10 | class HLERequestContext; | 10 | class HLERequestContext; |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | namespace Service { | 13 | namespace Service::Audio { |
| 14 | namespace Audio { | ||
| 15 | 14 | ||
| 16 | class AudRecU final : public ServiceFramework<AudRecU> { | 15 | class AudRecU final : public ServiceFramework<AudRecU> { |
| 17 | public: | 16 | public: |
| @@ -19,5 +18,4 @@ public: | |||
| 19 | ~AudRecU() = default; | 18 | ~AudRecU() = default; |
| 20 | }; | 19 | }; |
| 21 | 20 | ||
| 22 | } // namespace Audio | 21 | } // namespace Service::Audio |
| 23 | } // namespace Service | ||
diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp index 0e78c57e9..d9245cb19 100644 --- a/src/core/hle/service/audio/audren_u.cpp +++ b/src/core/hle/service/audio/audren_u.cpp | |||
| @@ -9,8 +9,7 @@ | |||
| 9 | #include "core/hle/kernel/hle_ipc.h" | 9 | #include "core/hle/kernel/hle_ipc.h" |
| 10 | #include "core/hle/service/audio/audren_u.h" | 10 | #include "core/hle/service/audio/audren_u.h" |
| 11 | 11 | ||
| 12 | namespace Service { | 12 | namespace Service::Audio { |
| 13 | namespace Audio { | ||
| 14 | 13 | ||
| 15 | /// TODO(bunnei): Find a proper value for the audio_ticks | 14 | /// TODO(bunnei): Find a proper value for the audio_ticks |
| 16 | constexpr u64 audio_ticks{static_cast<u64>(BASE_CLOCK_RATE / 200)}; | 15 | constexpr u64 audio_ticks{static_cast<u64>(BASE_CLOCK_RATE / 200)}; |
| @@ -272,5 +271,4 @@ void AudRenU::GetAudioDevice(Kernel::HLERequestContext& ctx) { | |||
| 272 | LOG_DEBUG(Service_Audio, "called"); | 271 | LOG_DEBUG(Service_Audio, "called"); |
| 273 | } | 272 | } |
| 274 | 273 | ||
| 275 | } // namespace Audio | 274 | } // namespace Service::Audio |
| 276 | } // namespace Service | ||
diff --git a/src/core/hle/service/audio/audren_u.h b/src/core/hle/service/audio/audren_u.h index f59d1627d..71b632e80 100644 --- a/src/core/hle/service/audio/audren_u.h +++ b/src/core/hle/service/audio/audren_u.h | |||
| @@ -10,8 +10,7 @@ namespace Kernel { | |||
| 10 | class HLERequestContext; | 10 | class HLERequestContext; |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | namespace Service { | 13 | namespace Service::Audio { |
| 14 | namespace Audio { | ||
| 15 | 14 | ||
| 16 | class AudRenU final : public ServiceFramework<AudRenU> { | 15 | class AudRenU final : public ServiceFramework<AudRenU> { |
| 17 | public: | 16 | public: |
| @@ -24,5 +23,4 @@ private: | |||
| 24 | void GetAudioDevice(Kernel::HLERequestContext& ctx); | 23 | void GetAudioDevice(Kernel::HLERequestContext& ctx); |
| 25 | }; | 24 | }; |
| 26 | 25 | ||
| 27 | } // namespace Audio | 26 | } // namespace Service::Audio |
| 28 | } // namespace Service | ||
diff --git a/src/core/hle/service/audio/codecctl.cpp b/src/core/hle/service/audio/codecctl.cpp index 1c86d8d17..ba0f1d228 100644 --- a/src/core/hle/service/audio/codecctl.cpp +++ b/src/core/hle/service/audio/codecctl.cpp | |||
| @@ -7,8 +7,7 @@ | |||
| 7 | #include "core/hle/kernel/hle_ipc.h" | 7 | #include "core/hle/kernel/hle_ipc.h" |
| 8 | #include "core/hle/service/audio/codecctl.h" | 8 | #include "core/hle/service/audio/codecctl.h" |
| 9 | 9 | ||
| 10 | namespace Service { | 10 | namespace Service::Audio { |
| 11 | namespace Audio { | ||
| 12 | 11 | ||
| 13 | CodecCtl::CodecCtl() : ServiceFramework("codecctl") { | 12 | CodecCtl::CodecCtl() : ServiceFramework("codecctl") { |
| 14 | static const FunctionInfo functions[] = { | 13 | static const FunctionInfo functions[] = { |
| @@ -29,5 +28,4 @@ CodecCtl::CodecCtl() : ServiceFramework("codecctl") { | |||
| 29 | RegisterHandlers(functions); | 28 | RegisterHandlers(functions); |
| 30 | } | 29 | } |
| 31 | 30 | ||
| 32 | } // namespace Audio | 31 | } // namespace Service::Audio |
| 33 | } // namespace Service | ||
diff --git a/src/core/hle/service/audio/codecctl.h b/src/core/hle/service/audio/codecctl.h index 1121ab0b1..d9ac29b67 100644 --- a/src/core/hle/service/audio/codecctl.h +++ b/src/core/hle/service/audio/codecctl.h | |||
| @@ -10,8 +10,7 @@ namespace Kernel { | |||
| 10 | class HLERequestContext; | 10 | class HLERequestContext; |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | namespace Service { | 13 | namespace Service::Audio { |
| 14 | namespace Audio { | ||
| 15 | 14 | ||
| 16 | class CodecCtl final : public ServiceFramework<CodecCtl> { | 15 | class CodecCtl final : public ServiceFramework<CodecCtl> { |
| 17 | public: | 16 | public: |
| @@ -19,5 +18,4 @@ public: | |||
| 19 | ~CodecCtl() = default; | 18 | ~CodecCtl() = default; |
| 20 | }; | 19 | }; |
| 21 | 20 | ||
| 22 | } // namespace Audio | 21 | } // namespace Service::Audio |
| 23 | } // namespace Service | ||