summaryrefslogtreecommitdiff
path: root/libs/audiographer/tests/sndfile
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-09-18 12:39:17 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2017-09-18 12:39:17 -0400
commit30b087ab3d28f1585987fa3f6ae006562ae192e3 (patch)
tree620ae0250b5d77f90a18f8c2b83be61e4fe7b0b5 /libs/audiographer/tests/sndfile
parentcb956e3e480716a3efd280a5287bdd7bee1cedc5 (diff)
globally change all use of "frame" to refer to audio into "sample".
Generated by tools/f2s. Some hand-editing will be required in a few places to fix up comments related to timecode and video in order to keep the legible
Diffstat (limited to 'libs/audiographer/tests/sndfile')
-rw-r--r--libs/audiographer/tests/sndfile/tmp_file_test.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/audiographer/tests/sndfile/tmp_file_test.cc b/libs/audiographer/tests/sndfile/tmp_file_test.cc
index 9748623f37..0d62796a02 100644
--- a/libs/audiographer/tests/sndfile/tmp_file_test.cc
+++ b/libs/audiographer/tests/sndfile/tmp_file_test.cc
@@ -12,8 +12,8 @@ class TmpFileTest : public CppUnit::TestFixture
public:
void setUp()
{
- frames = 128;
- random_data = TestUtils::init_random_data(frames);
+ samples = 128;
+ random_data = TestUtils::init_random_data(samples);
}
void tearDown()
@@ -25,22 +25,22 @@ class TmpFileTest : public CppUnit::TestFixture
{
uint32_t channels = 2;
file.reset (new TmpFileSync<float>(SF_FORMAT_WAV | SF_FORMAT_FLOAT, channels, 44100));
- AllocatingProcessContext<float> c (random_data, frames, channels);
+ AllocatingProcessContext<float> c (random_data, samples, channels);
c.set_flag (ProcessContext<float>::EndOfInput);
file->process (c);
- TypeUtils<float>::zero_fill (c.data (), c.frames());
+ TypeUtils<float>::zero_fill (c.data (), c.samples());
file->seek (0, SEEK_SET);
file->read (c);
- CPPUNIT_ASSERT (TestUtils::array_equals (random_data, c.data(), c.frames()));
+ CPPUNIT_ASSERT (TestUtils::array_equals (random_data, c.data(), c.samples()));
}
private:
boost::shared_ptr<TmpFileSync<float> > file;
float * random_data;
- framecnt_t frames;
+ samplecnt_t samples;
};
CPPUNIT_TEST_SUITE_REGISTRATION (TmpFileTest);