Fixes ticket:238. (Tim Meehan)
authorjcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5>
Wed, 9 Apr 2008 15:26:29 +0000 (15:26 +0000)
committerjcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5>
Wed, 9 Apr 2008 15:26:29 +0000 (15:26 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8163 221aa14e-8319-0410-a670-987f0aec2ac5

gnuradio-core/src/lib/io/gri_wavfile.cc
gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py

index 4a9db61d873ca6cde5eba340dc43d04535c722e1..c1a2b7c7373f497318d8ea370bb63f99b69a2d74 100644 (file)
@@ -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
index f6359d82fb9e0782a35ad367442d93ef334330a4..c6d376a8181aee6cddd72f6faef7f0fec1a1432f 100755 (executable)
@@ -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"