diff options
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. |