| 2149 | //============================================================================== |
| 2150 | template <typename Format, typename Buffer> |
| 2151 | inline void testIntToFloatBuffer (choc::test::TestProgress& progress, Buffer& buffer, uint32_t sampleStride) |
| 2152 | { |
| 2153 | std::vector<uint8_t> data; |
| 2154 | data.resize (buffer.getNumChannels() * buffer.getNumFrames() * sampleStride); |
| 2155 | auto b2 = buffer; |
| 2156 | auto b3 = buffer; |
| 2157 | |
| 2158 | choc::audio::sampledata::copyToInterleavedIntData<Format> (data.data(), sampleStride, buffer); |
| 2159 | choc::audio::sampledata::copyFromInterleavedIntData<Format> (b2, data.data(), sampleStride); |
| 2160 | choc::audio::sampledata::copyToInterleavedIntData<Format> (data.data(), sampleStride, b2); |
| 2161 | choc::audio::sampledata::copyFromInterleavedIntData<Format> (b3, data.data(), sampleStride); |
| 2162 | |
| 2163 | CHOC_EXPECT_EQ (true, contentMatches (b2, b3)); |
| 2164 | } |
| 2165 | |
| 2166 | template <typename Format> |
| 2167 | inline void testIntToFloatFormat (choc::test::TestProgress& progress) |
nothing calls this directly
no test coverage detected