summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-04-15 20:01:54 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-04-15 20:01:54 +0200
commit16c39e953ef0b3df06a7aee6b510de37a2bcc15c (patch)
tree22a40d31009bc1187e5a002711d8b493788e3a0a /src
parent2a373d19a912fdd6b713bcb2150f19333d583174 (diff)
Fix audio cache test - missing updateChunkSize call before processing.
Diffstat (limited to 'src')
-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.