diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-03-26 09:21:22 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-03-26 10:15:49 +0100 |
commit | 9b3b365a6645c16b0f93dcd798da83494e481d26 (patch) | |
tree | b56c5b2369d7b7e10f2dc6072aee296fa43a42cf /src/audiocacheidmanager.h | |
parent | 2b86429f762d8d977ceb4d610189e7c01fc52ee8 (diff) |
Linter fixes for audiocache.cc
Diffstat (limited to 'src/audiocacheidmanager.h')
-rw-r--r-- | src/audiocacheidmanager.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/audiocacheidmanager.h b/src/audiocacheidmanager.h index 0aa40e3..2bbe09d 100644 --- a/src/audiocacheidmanager.h +++ b/src/audiocacheidmanager.h @@ -26,14 +26,14 @@ */ #pragma once -#include <stdlib.h> +#include <cstdlib> #include <vector> - -#include <audiotypes.h> - #include <mutex> +#include "audiotypes.h" +#include "owner.h" + class AudioCacheFile; #define CACHE_DUMMYID -2 @@ -49,8 +49,8 @@ struct cache_t size_t channel{0}; size_t pos{0}; //< File position volatile bool ready{false}; - sample_t* front{nullptr}; - sample_t* back{nullptr}; + gsl::owner<sample_t*> front{nullptr}; + gsl::owner<sample_t*> back{nullptr}; size_t localpos{0}; //< Intra buffer (front) position. sample_t* preloaded_samples{nullptr}; // nullptr means preload buffer not active. |