diff options
| author | 2018-04-30 10:15:27 -0400 | |
|---|---|---|
| committer | 2018-04-30 10:15:27 -0400 | |
| commit | f362cf46eed346db79c15ca195d652dff8c48c21 (patch) | |
| tree | ed7367dd74a937809d9501b2d848e8e981b538ba /src/core/hle/service | |
| parent | Merge pull request #424 from lioncash/string (diff) | |
| parent | core_timing: Namespace all functions and constants in core_timing's header (diff) | |
| download | yuzu-f362cf46eed346db79c15ca195d652dff8c48c21.tar.gz yuzu-f362cf46eed346db79c15ca195d652dff8c48c21.tar.xz yuzu-f362cf46eed346db79c15ca195d652dff8c48c21.zip | |
Merge pull request #425 from lioncash/namespace
core_timing: Namespace all functions and constants in core_timing's header
Diffstat (limited to 'src/core/hle/service')
| -rw-r--r-- | src/core/hle/service/audio/audout_u.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/audio/audren_u.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/hid/hid.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/service/nvflinger/nvflinger.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/time/time.cpp | 3 |
5 files changed, 8 insertions, 7 deletions
diff --git a/src/core/hle/service/audio/audout_u.cpp b/src/core/hle/service/audio/audout_u.cpp index 6297dc450..fa3728672 100644 --- a/src/core/hle/service/audio/audout_u.cpp +++ b/src/core/hle/service/audio/audout_u.cpp | |||
| @@ -18,7 +18,7 @@ constexpr u32 sample_rate{48000}; | |||
| 18 | /// to more audio channels (probably when Docked I guess) | 18 | /// to more audio channels (probably when Docked I guess) |
| 19 | constexpr u32 audio_channels{2}; | 19 | constexpr u32 audio_channels{2}; |
| 20 | /// TODO(st4rk): find a proper value for the audio_ticks | 20 | /// TODO(st4rk): find a proper value for the audio_ticks |
| 21 | constexpr u64 audio_ticks{static_cast<u64>(BASE_CLOCK_RATE / 500)}; | 21 | constexpr u64 audio_ticks{static_cast<u64>(CoreTiming::BASE_CLOCK_RATE / 500)}; |
| 22 | 22 | ||
| 23 | class IAudioOut final : public ServiceFramework<IAudioOut> { | 23 | class IAudioOut final : public ServiceFramework<IAudioOut> { |
| 24 | public: | 24 | public: |
diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp index 291885db8..0d6eb1d51 100644 --- a/src/core/hle/service/audio/audren_u.cpp +++ b/src/core/hle/service/audio/audren_u.cpp | |||
| @@ -12,7 +12,7 @@ | |||
| 12 | namespace Service::Audio { | 12 | namespace Service::Audio { |
| 13 | 13 | ||
| 14 | /// TODO(bunnei): Find a proper value for the audio_ticks | 14 | /// TODO(bunnei): Find a proper value for the audio_ticks |
| 15 | constexpr u64 audio_ticks{static_cast<u64>(BASE_CLOCK_RATE / 200)}; | 15 | constexpr u64 audio_ticks{static_cast<u64>(CoreTiming::BASE_CLOCK_RATE / 200)}; |
| 16 | 16 | ||
| 17 | class IAudioRenderer final : public ServiceFramework<IAudioRenderer> { | 17 | class IAudioRenderer final : public ServiceFramework<IAudioRenderer> { |
| 18 | public: | 18 | public: |
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index 736180b63..dc7ff5c31 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp | |||
| @@ -18,9 +18,9 @@ namespace Service::HID { | |||
| 18 | 18 | ||
| 19 | // Updating period for each HID device. | 19 | // Updating period for each HID device. |
| 20 | // TODO(shinyquagsire23): These need better values. | 20 | // TODO(shinyquagsire23): These need better values. |
| 21 | constexpr u64 pad_update_ticks = BASE_CLOCK_RATE / 10000; | 21 | constexpr u64 pad_update_ticks = CoreTiming::BASE_CLOCK_RATE / 10000; |
| 22 | constexpr u64 accelerometer_update_ticks = BASE_CLOCK_RATE / 10000; | 22 | constexpr u64 accelerometer_update_ticks = CoreTiming::BASE_CLOCK_RATE / 10000; |
| 23 | constexpr u64 gyroscope_update_ticks = BASE_CLOCK_RATE / 10000; | 23 | constexpr u64 gyroscope_update_ticks = CoreTiming::BASE_CLOCK_RATE / 10000; |
| 24 | 24 | ||
| 25 | class IAppletResource final : public ServiceFramework<IAppletResource> { | 25 | class IAppletResource final : public ServiceFramework<IAppletResource> { |
| 26 | public: | 26 | public: |
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp index 3481e48d0..5c50ed601 100644 --- a/src/core/hle/service/nvflinger/nvflinger.cpp +++ b/src/core/hle/service/nvflinger/nvflinger.cpp | |||
| @@ -19,7 +19,7 @@ | |||
| 19 | namespace Service::NVFlinger { | 19 | namespace Service::NVFlinger { |
| 20 | 20 | ||
| 21 | constexpr size_t SCREEN_REFRESH_RATE = 60; | 21 | constexpr size_t SCREEN_REFRESH_RATE = 60; |
| 22 | constexpr u64 frame_ticks = static_cast<u64>(BASE_CLOCK_RATE / SCREEN_REFRESH_RATE); | 22 | constexpr u64 frame_ticks = static_cast<u64>(CoreTiming::BASE_CLOCK_RATE / SCREEN_REFRESH_RATE); |
| 23 | 23 | ||
| 24 | NVFlinger::NVFlinger() { | 24 | NVFlinger::NVFlinger() { |
| 25 | // Add the different displays to the list of displays. | 25 | // Add the different displays to the list of displays. |
diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp index 278465358..e50680356 100644 --- a/src/core/hle/service/time/time.cpp +++ b/src/core/hle/service/time/time.cpp | |||
| @@ -59,7 +59,8 @@ public: | |||
| 59 | private: | 59 | private: |
| 60 | void GetCurrentTimePoint(Kernel::HLERequestContext& ctx) { | 60 | void GetCurrentTimePoint(Kernel::HLERequestContext& ctx) { |
| 61 | NGLOG_DEBUG(Service_Time, "called"); | 61 | NGLOG_DEBUG(Service_Time, "called"); |
| 62 | SteadyClockTimePoint steady_clock_time_point{cyclesToMs(CoreTiming::GetTicks()) / 1000}; | 62 | SteadyClockTimePoint steady_clock_time_point{ |
| 63 | CoreTiming::cyclesToMs(CoreTiming::GetTicks()) / 1000}; | ||
| 63 | IPC::ResponseBuilder rb{ctx, (sizeof(SteadyClockTimePoint) / 4) + 2}; | 64 | IPC::ResponseBuilder rb{ctx, (sizeof(SteadyClockTimePoint) / 4) + 2}; |
| 64 | rb.Push(RESULT_SUCCESS); | 65 | rb.Push(RESULT_SUCCESS); |
| 65 | rb.PushRaw(steady_clock_time_point); | 66 | rb.PushRaw(steady_clock_time_point); |