Closed GoogleCodeExporter closed 9 years ago
Could be libcubeb. Is it enabled?
Original comment by classi...@floodgap.com
on 18 Jul 2012 at 7:21
(And I suspect it *is* libcubeb:
https://bugzilla.mozilla.org/show_bug.cgi?id=768265
). We should be able to disable it in the interim unless you can fix it. The
backside code for OS X should be
https://bugzilla.mozilla.org/show_bug.cgi?id=742160
Original comment by classi...@floodgap.com
on 18 Jul 2012 at 7:24
Thanks for the hint - it was indeed an endian issue in libcubeb, which I was
able to fix by looking at libsydneyaudio.
Original comment by Tobias.N...@gmail.com
on 18 Jul 2012 at 7:47
Attachments:
We should upstream this.
Original comment by classi...@floodgap.com
on 18 Jul 2012 at 8:27
in "media/libcubeb/include/cubeb.h" there is the following section:
{{{
#ifdef WORDS_BIGENDIAN
/**< Native endian 16-bit signed PCM. */
CUBEB_SAMPLE_S16NE = CUBEB_SAMPLE_S16BE,
/**< Native endian 32-bit IEEE floating point PCM. */
CUBEB_SAMPLE_FLOAT32NE = CUBEB_SAMPLE_FLOAT32BE
#else
/**< Native endian 16-bit signed PCM. */
CUBEB_SAMPLE_S16NE = CUBEB_SAMPLE_S16LE,
/**< Native endian 32-bit IEEE floating point PCM. */
CUBEB_SAMPLE_FLOAT32NE = CUBEB_SAMPLE_FLOAT32LE
#endif
}}}
I don't check this but I suspect WORDS_BIGENDIAN isn't defined (correctly).
Original comment by Tobias.N...@gmail.com
on 27 Jul 2012 at 10:38
I meant I "didn't" instead of "don't".
Original comment by Tobias.N...@gmail.com
on 27 Jul 2012 at 10:54
I suggest the following patch (doesn't break anything):
--- a/media/libcubeb/include/cubeb.h Mon Jul 23 13:19:43 2012 +0200
+++ b/media/libcubeb/include/cubeb.h Fri Jul 27 16:03:06 2012 +0200
@@ -89,7 +89,7 @@
CUBEB_SAMPLE_FLOAT32LE,
/**< Big endian 32-bit IEEE floating point PCM. */
CUBEB_SAMPLE_FLOAT32BE,
-#ifdef WORDS_BIGENDIAN
+#if defined(WORDS_BIGENDIAN) || defined(__BIG_ENDIAN__)
/**< Native endian 16-bit signed PCM. */
CUBEB_SAMPLE_S16NE = CUBEB_SAMPLE_S16BE,
/**< Native endian 32-bit IEEE floating point PCM. */
Original comment by Tobias.N...@gmail.com
on 27 Jul 2012 at 2:10
This bug has been files to mozilla:
https://bugzilla.mozilla.org/show_bug.cgi?id=779187
Original comment by Tobias.N...@gmail.com
on 31 Jul 2012 at 4:56
Closing as fixed; this works properly in 17.
Original comment by classi...@floodgap.com
on 18 Sep 2012 at 4:15
Original issue reported on code.google.com by
Tobias.N...@gmail.com
on 18 Jul 2012 at 7:04