Bug 779187 - Fix nsBufferedAudioStream's sample format selection for big endian machines. r=doublec

This commit is contained in:
Matthew Gregan 2012-08-06 15:26:41 +12:00
parent 53e0011130
commit 4a025b6513
3 changed files with 3 additions and 3 deletions

View File

@ -984,7 +984,7 @@ nsBufferedAudioStream::Init(PRInt32 aNumChannels, PRInt32 aRate, SampleFormat aF
mBytesPerFrame = sizeof(short) * aNumChannels;
break;
case FORMAT_FLOAT32:
params.format = CUBEB_SAMPLE_FLOAT32LE;
params.format = CUBEB_SAMPLE_FLOAT32NE;
mBytesPerFrame = sizeof(float) * aNumChannels;
break;
default:

View File

@ -5,4 +5,4 @@ Makefile.in build files for the Mozilla build system.
The cubeb git repository is: git://github.com/kinetiknz/cubeb.git
The git commit ID used was f3116936eba69aced240df7db77264269f3f95ae.
The git commit ID used was 697b5c1279bf723d93b9d5f08e1fec6a6382bb77.

View File

@ -88,7 +88,7 @@ typedef enum {
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. */