From abb00f5e7fea020e9f55840784753002b8dd2d8a Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Fri, 10 Apr 2015 17:42:56 +0200 Subject: Changed size of parameter from int to size_t. --- src/cachemanager.cc | 2 +- src/cachemanager.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cachemanager.cc b/src/cachemanager.cc index 719df17..9b18882 100644 --- a/src/cachemanager.cc +++ b/src/cachemanager.cc @@ -58,7 +58,7 @@ void CacheManager::deinit() } // Invariant: initial_samples_needed < preloaded audio data -sample_t *CacheManager::open(AudioFile *file, int initial_samples_needed, int channel, cacheid_t &id) +sample_t *CacheManager::open(AudioFile *file, size_t initial_samples_needed, int channel, cacheid_t &id) { // What if no free ids is available? m_ids.lock(); diff --git a/src/cachemanager.h b/src/cachemanager.h index 6a14429..4b5c64d 100644 --- a/src/cachemanager.h +++ b/src/cachemanager.h @@ -58,7 +58,7 @@ public: // returns the first buffer and its size in &size. // get id from "free stack" and store pointers to buffers in id vector. // event: open sndfile handle (if not already open) and increase refcount - sample_t *open(AudioFile *file, int initial_samples_needed, int channel, cacheid_t &new_id); + sample_t *open(AudioFile *file, size_t initial_samples_needed, int channel, cacheid_t &new_id); // Return which ever buffer is the front, swap them and add event to load the // next chunk. -- cgit v1.2.3