mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
Bug 779187 - Fix nsBufferedAudioStream's sample format selection for big endian machines. r=doublec
This commit is contained in:
parent
53e0011130
commit
4a025b6513
@ -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:
|
||||
|
@ -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.
|
||||
|
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user