diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-04-15 20:01:54 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-04-15 20:01:54 +0200 |
commit | 16c39e953ef0b3df06a7aee6b510de37a2bcc15c (patch) | |
tree | 22a40d31009bc1187e5a002711d8b493788e3a0a /src | |
parent | 2a373d19a912fdd6b713bcb2150f19333d583174 (diff) |
Fix audio cache test - missing updateChunkSize call before processing.
Diffstat (limited to 'src')
-rw-r--r-- | src/audiocache.cc | 2 |
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. |