diff options
| author | 2020-07-15 19:14:21 -0400 | |
|---|---|---|
| committer | 2020-07-15 19:41:22 -0400 | |
| commit | bef1844a51a37c1c8dc531e67069ef00821ffa9c (patch) | |
| tree | 2e46f404c3f0baf1b854e1bea916c19469fe424a /src/audio_core/stream.h | |
| parent | core_timing: Make use of std::chrono with ScheduleEvent (diff) | |
| download | yuzu-bef1844a51a37c1c8dc531e67069ef00821ffa9c.tar.gz yuzu-bef1844a51a37c1c8dc531e67069ef00821ffa9c.tar.xz yuzu-bef1844a51a37c1c8dc531e67069ef00821ffa9c.zip | |
core_timing: Make TimedCallback take std::chrono::nanoseconds
Enforces our desired time units directly with a concrete type.
Diffstat (limited to 'src/audio_core/stream.h')
| -rw-r--r-- | src/audio_core/stream.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/stream.h b/src/audio_core/stream.h index 2febd647c..6437b8591 100644 --- a/src/audio_core/stream.h +++ b/src/audio_core/stream.h | |||
| @@ -91,10 +91,10 @@ public: | |||
| 91 | 91 | ||
| 92 | private: | 92 | private: |
| 93 | /// Plays the next queued buffer in the audio stream, starting playback if necessary | 93 | /// Plays the next queued buffer in the audio stream, starting playback if necessary |
| 94 | void PlayNextBuffer(s64 cycles_late = 0); | 94 | void PlayNextBuffer(std::chrono::nanoseconds ns_late = {}); |
| 95 | 95 | ||
| 96 | /// Releases the actively playing buffer, signalling that it has been completed | 96 | /// Releases the actively playing buffer, signalling that it has been completed |
| 97 | void ReleaseActiveBuffer(s64 cycles_late = 0); | 97 | void ReleaseActiveBuffer(std::chrono::nanoseconds ns_late = {}); |
| 98 | 98 | ||
| 99 | /// Gets the number of core cycles when the specified buffer will be released | 99 | /// Gets the number of core cycles when the specified buffer will be released |
| 100 | std::chrono::nanoseconds GetBufferReleaseNS(const Buffer& buffer) const; | 100 | std::chrono::nanoseconds GetBufferReleaseNS(const Buffer& buffer) const; |