diff options
-rw-r--r-- | gnuradio-core/src/lib/io/gri_wavfile.cc | 4 | ||||
-rwxr-xr-x | gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/gnuradio-core/src/lib/io/gri_wavfile.cc b/gnuradio-core/src/lib/io/gri_wavfile.cc index 4a9db61d8..c1a2b7c73 100644 --- a/gnuradio-core/src/lib/io/gri_wavfile.cc +++ b/gnuradio-core/src/lib/io/gri_wavfile.cc @@ -71,7 +71,7 @@ host_to_wav(uint16_t x) static inline int16_t host_to_wav(int16_t x) { - return bswap_32(x); + return bswap_16(x); } static inline uint32_t @@ -89,7 +89,7 @@ wav_to_host(uint16_t x) static inline int16_t wav_to_host(int16_t x) { - return bswap_32(x); + return bswap_16(x); } #else diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py b/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py index f6359d82f..c6d376a81 100755 --- a/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py +++ b/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py @@ -39,8 +39,7 @@ class qa_wavefile(gr_unittest.TestCase): wf = gr.wavfile_source(g_in_file) self.assertEqual(wf.sample_rate(), 8000) - # disabled. Fails on PPC - def xtest_002_checkwavcopy (self): + def test_002_checkwavcopy (self): infile = g_in_file outfile = "test_out.wav" |