From 1b32041bb54e1c9310853c9942498ec223d8106a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Fri, 29 Jan 2016 12:54:02 +0100 Subject: wip 2 --- test/audiocachetest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/audiocachetest.cc b/test/audiocachetest.cc index 5db5940..3ac63bf 100644 --- a/test/audiocachetest.cc +++ b/test/audiocachetest.cc @@ -81,7 +81,7 @@ public: printf("open: initial_samples_needed: %d\n", (int)initial_samples_needed); sample_t *samples = - audio_cache.open(&audio_file, initial_samples_needed, channel, id); + audio_cache.open(audio_file, initial_samples_needed, channel, id); size_t size = initial_samples_needed; size_t offset = 0; -- cgit v1.2.3 From bbdde7f2d3c25e0fdc7c9e34c6dafcc8419dab3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Fri, 29 Jan 2016 16:45:31 +0100 Subject: wip --- test/audiocachefiletest.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/audiocachefiletest.cc b/test/audiocachefiletest.cc index 98b7ab5..b7839b7 100644 --- a/test/audiocachefiletest.cc +++ b/test/audiocachefiletest.cc @@ -92,7 +92,9 @@ public: ref_file[c]->load(); } - AudioCacheFile file(filename); + std::vector read_buffer; + + AudioCacheFile file(filename, read_buffer); CPPUNIT_ASSERT_EQUAL(filename, file.getFilename()); CPPUNIT_ASSERT_EQUAL(13, (int)file.getChannelCount()); // Sanity check @@ -188,7 +190,9 @@ public: size_t buffer_size = 64; std::string filename = "kits/no-such-file.wav"; - AudioCacheFile file(filename); + std::vector read_buffer; + + AudioCacheFile file(filename, read_buffer); CPPUNIT_ASSERT_EQUAL(filename, file.getFilename()); CPPUNIT_ASSERT_EQUAL(0u, (unsigned int)file.getSize()); CPPUNIT_ASSERT_EQUAL(0u, (unsigned int)file.getChannelCount()); -- cgit v1.2.3 From 0e550bc28852a42896a0cb3711f78d9f3e520b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Fri, 29 Jan 2016 17:18:16 +0100 Subject: Fix for build error. --- test/audiocacheidmanagertest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/audiocacheidmanagertest.cc b/test/audiocacheidmanagertest.cc index a9cc878..eff7e78 100644 --- a/test/audiocacheidmanagertest.cc +++ b/test/audiocacheidmanagertest.cc @@ -34,7 +34,7 @@ class TestableAudioCacheIDManager public: int getAvailableIDs() { - return availableids.size(); + return available_ids.size(); } }; -- cgit v1.2.3