summaryrefslogtreecommitdiff
path: root/src/audiocache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/audiocache.cc')
-rw-r--r--src/audiocache.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/audiocache.cc b/src/audiocache.cc
index aecb208..b01d752 100644
--- a/src/audiocache.cc
+++ b/src/audiocache.cc
@@ -68,6 +68,8 @@ sample_t* AudioCache::open(const AudioFile& file,
std::size_t initial_samples_needed,
int channel, cacheid_t& id)
{
+ assert(chunk_size); // Assert updateChunkSize was called before processing.
+
if(!file.isValid())
{
// File preload not yet ready - skip this sample.