aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pcm_format.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_pcm_format.cxx')
-rw-r--r--test/test_pcm_format.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_pcm_format.cxx b/test/test_pcm_format.cxx
index 6393d484b..94c55ab16 100644
--- a/test/test_pcm_format.cxx
+++ b/test/test_pcm_format.cxx
@@ -39,7 +39,7 @@ PcmFormatTest::TestFormat8to16()
CPPUNIT_ASSERT_EQUAL(N, d.size);
for (size_t i = 0; i < N; ++i)
- CPPUNIT_ASSERT_EQUAL(int(src[i]), d.data[i] >> 8);
+ CPPUNIT_ASSERT_EQUAL(int(src[i]), d[i] >> 8);
}
void
@@ -54,7 +54,7 @@ PcmFormatTest::TestFormat16to24()
CPPUNIT_ASSERT_EQUAL(N, d.size);
for (size_t i = 0; i < N; ++i)
- CPPUNIT_ASSERT_EQUAL(int(src[i]), d.data[i] >> 8);
+ CPPUNIT_ASSERT_EQUAL(int(src[i]), d[i] >> 8);
}
void
@@ -69,7 +69,7 @@ PcmFormatTest::TestFormat16to32()
CPPUNIT_ASSERT_EQUAL(N, d.size);
for (size_t i = 0; i < N; ++i)
- CPPUNIT_ASSERT_EQUAL(int(src[i]), d.data[i] >> 16);
+ CPPUNIT_ASSERT_EQUAL(int(src[i]), d[i] >> 16);
}
void
@@ -84,8 +84,8 @@ PcmFormatTest::TestFormatFloat()
CPPUNIT_ASSERT_EQUAL(N, f.size);
for (size_t i = 0; i != f.size; ++i) {
- CPPUNIT_ASSERT(f.data[i] >= -1.);
- CPPUNIT_ASSERT(f.data[i] <= 1.);
+ CPPUNIT_ASSERT(f[i] >= -1.);
+ CPPUNIT_ASSERT(f[i] <= 1.);
}
PcmDither dither;
@@ -96,5 +96,5 @@ PcmFormatTest::TestFormatFloat()
CPPUNIT_ASSERT_EQUAL(N, d.size);
for (size_t i = 0; i < N; ++i)
- CPPUNIT_ASSERT_EQUAL(src[i], d.data[i]);
+ CPPUNIT_ASSERT_EQUAL(src[i], d[i]);
}