Граф коммитов

61 Коммитов

Автор SHA1 Сообщение Дата
Chun-Min Chang 9efca17a07 Bug 1321502 - part 2: Use preferred layout for initializing cubeb when audio queue is empty; r=jya
MozReview-Commit-ID: BDEb8IxuJRn

--HG--
extra : rebase_source : a3bc1ea315c6a00d479a1b7da3eb14d89f458b2d
2017-02-04 08:22:15 +08:00
Chun-Min Chang 561671475d Bug 1321502 - part 1: Enable multi-channel support in Gecko on Windows; r=jya
MozReview-Commit-ID: KURUk3EffOu

--HG--
extra : rebase_source : a0ce3fb8691f45a33995a3ce1ba895c254a35c8c
2017-01-26 17:35:31 +08:00
Matthew Gregan f0efb94bfd Bug 1303083 - Make CubebUtils::PreferredSampleRate handle InitPreferredSampleRate failures. r=padenot 2016-09-18 16:32:22 +12:00
Matthew Gregan 0ebace12e5 Bug 1302348 - Report cubeb context init failures via telemetry. r=padenot 2016-09-16 12:54:24 +12:00
JW Wang ed7bec1506 Bug 1277198. Part 3 - remove AudioStream::mInRate/mOutRate. r=kinetik.
MozReview-Commit-ID: KTiyzO8VEZh

--HG--
extra : rebase_source : 49589d5bd8ea1b2575caaf608569c64fab307c5b
2016-06-01 18:00:15 +08:00
JW Wang 510020f774 Bug 1277198. Part 2 - fix OpenDumpFile(). r=kinetik.
MozReview-Commit-ID: IWzvlWnhuFe

--HG--
extra : rebase_source : 39c105ad766947ebe350b8b2afc2685bb00339dc
2016-06-01 17:54:37 +08:00
JW Wang 51c02cde54 Bug 1277198. Part 1 - add AudioClock::GetInputRate/GetOutputRate. r=kinetik.
MozReview-Commit-ID: HsaiSq83MtD

--HG--
extra : rebase_source : d578e00f15300fbcf1cc41fb5242868a4b31b57d
2016-06-01 17:38:47 +08:00
JW Wang d292fa5e3a Bug 1277776 - Use SaferMultDiv in AudioClock::GetPositionInFrames(). r=jya.
MozReview-Commit-ID: 711czooNf55

--HG--
extra : rebase_source : cf2ba4ab351775be5ab08a820de9d4a1ac356dac
2016-06-06 11:13:34 +08:00
JW Wang 59371c367d Bug 1277188. Part 5 - rename AudioClock::SetPlaybackRateUnlocked(). r=kinetik.
MozReview-Commit-ID: C7m8xeMAJES

--HG--
extra : rebase_source : 2a94db443d9696e9f4b1ee5caa4915df69e745af
2016-06-01 16:45:32 +08:00
JW Wang e84f041b19 Bug 1277188. Part 4 - remove AudioClock::mAudioStream. r=kinetik.
MozReview-Commit-ID: KjrfgHIg8z4

--HG--
extra : rebase_source : 8208e3ead2d8dfbe02fb899e5fb376651715be61
2016-06-01 16:36:10 +08:00
JW Wang 2a587ee2df Bug 1277188. Part 3 - remove AudioClock::GetPositionUnlocked(). r=kinetik.
MozReview-Commit-ID: 9g3wqI63OsR

--HG--
extra : rebase_source : 216e0a7e9909572ad828c262063e348df462a5ef
2016-06-01 16:30:54 +08:00
JW Wang 0b95bcdd11 Bug 1277188. Part 2 - fix AudioStream::GetPositionInFrames(). r=kinetik.
MozReview-Commit-ID: 3NhoRCPu8fU

--HG--
extra : rebase_source : d3b177d25a86f03ac65c5231dc389e66cbb5aba5
2016-06-01 16:18:56 +08:00
JW Wang 050beb7609 Bug 1277188. Part 1 - fix AudioStream::GetPosition(). r=kinetik.
MozReview-Commit-ID: ECGPX04hM6U

--HG--
extra : rebase_source : 0a0762173432be070582ea789ea58ca4e63b73cf
2016-06-01 16:19:35 +08:00
JW Wang e34042f5dc Bug 1277175 - Remove AudioStream::IsPaused(). r=kinetik.
MozReview-Commit-ID: K2CHJ0E90MW

--HG--
extra : rebase_source : 4f0bd8f2e46ad8850a15c7a1102c9bae5217e6bc
2016-05-31 15:59:20 +08:00
JW Wang e9b8a82345 Bug 1277176 - Remove CircularByteBuffer from AudioStream.h. r=kaku.
MozReview-Commit-ID: 3SRPiszQMQr

--HG--
extra : transplant_source : e%CF%92%14%C7Y%93%DC%9DE%A7%87%BE%0A%B3%A0%B1j%3A%86
2016-06-01 15:10:54 +08:00
JW Wang 17e4b1d7d8 Bug 1276851 - Remove AudioStream::mIsFirst. r=kinetik.
MozReview-Commit-ID: H9KCM2zZulA

--HG--
extra : rebase_source : 51387a1bd37f1b22bdb5100abe83af17c0caa481
2016-05-31 14:18:58 +08:00
JW Wang f587ac226e Bug 1276840 - Remove AudioStream::RUNNING. r=kinetik.
MozReview-Commit-ID: 3sCGYifUxJO

--HG--
extra : rebase_source : f20ee5647bb92b7bf1a35fde9bb131f4585cb32c
2016-05-31 11:54:30 +08:00
JW Wang 378ce6e9b8 Bug 1276838 - improve coding style of calling cubeb functions. r=kinetik.
MozReview-Commit-ID: 1KjjF6StM0a

--HG--
extra : rebase_source : 5174bedd6400c88b01cb0018f9ff64f1eadb2d4a
2016-05-30 21:12:35 +08:00
JW Wang 330fa8cab9 Bug 1276569. Part 4 - remove mStartTime. r=kinetik.
MozReview-Commit-ID: EbTqf4nY8NR

--HG--
extra : rebase_source : d7bd2f5fe21e45e53d252950bcd9ebbcaff1a5cd
2016-05-30 16:38:37 +08:00
JW Wang 9b3b5f90d2 Bug 1276569. Part 2 - merge StartUnlocked() with Start() r=kinetik.
MozReview-Commit-ID: DuEXdkvt7je

--HG--
extra : rebase_source : c8fb5f479ba61f9763b64cc0a90a1c29ff8e0e0d
2016-05-30 16:05:30 +08:00
Jean-Yves Avenard 33f592b6a5 Bug 1264199: P5. Perform all downmixing operations in DecodedAudioDataSink. r=kinetik
Performing all audio processing operations in the same place, allows to simplify the code.

Additionally, if accessibility.monoaudio.enable is not set, we always upmix mono to stereo so that if the first audio stream seen was mono, we aren't stuck playing all future streams in mono.

MozReview-Commit-ID: 5yANN6PLFhX

--HG--
extra : rebase_source : 8b2138368d97f4ec2857c021ed9605c633282ed2
2016-04-13 20:25:50 +10:00
Jean-Yves Avenard ec0a733d51 Bug 1264199: P3. Attempt to minimize audio quality loss and unnecessary processing. r=kinetik
We attempt to avoid unnecessary resampling of 44.1kHz and 48kHz content, for all others we use cubeb's preferred sampling rate as final sampling rate.

MozReview-Commit-ID: 413qnsDFHzY

--HG--
extra : rebase_source : ca3508aefb29e2e64e84774bddb9fe77654c8945
2016-04-13 17:55:48 +10:00
Carsten "Tomcat" Book c728b16f87 Backed out changeset 697006992f04 (bug 1264199)
--HG--
extra : rebase_source : 54261374ba3d452f9eb38a521d1a95f9b9bcc18e
2016-04-21 16:31:58 +02:00
Carsten "Tomcat" Book ba17b2d751 Backed out changeset 93ab5d1b04b0 (bug 1264199)
--HG--
extra : rebase_source : 0c5ec4b3526d6cfcc86d40221f298790f262227d
2016-04-21 16:31:55 +02:00
Jean-Yves Avenard 427e2852c6 Bug 1264199: P5. Perform all downmixing operations in DecodedAudioDataSink. r=kinetik
Performing all audio processing operations in the same place, allows to simplify the code.

Additionally, if accessibility.monoaudio.enable is not set, we always upmix mono to stereo so that if the first audio stream seen was mono, we aren't stuck playing all future streams in mono.

MozReview-Commit-ID: 5yANN6PLFhX

--HG--
extra : rebase_source : f40dfacc9fc323794325de0431c4958854012180
2016-04-13 20:25:50 +10:00
Jean-Yves Avenard f3ef547925 Bug 1264199: P3. Attempt to minimize audio quality loss and unnecessary processing. r=kinetik
We attempt to avoid unnecessary resampling of 44.1kHz and 48kHz content, for all others we use cubeb's preferred sampling rate as final sampling rate.

MozReview-Commit-ID: 413qnsDFHzY

--HG--
extra : rebase_source : a469cb7269be48bfbca82fbbd90c3e2caf21b9a7
2016-04-13 17:55:48 +10:00
Wes Kocher b8f98ffe9f Backed out 8 changesets (bug 1264199) for permafailing media mochitests on OSX 10.6 a=backout
Backed out changeset 0f20f2080824 (bug 1264199)
Backed out changeset 90351d2719be (bug 1264199)
Backed out changeset f484b42cbdda (bug 1264199)
Backed out changeset b79b62146120 (bug 1264199)
Backed out changeset f587df589b69 (bug 1264199)
Backed out changeset 02f781a573b4 (bug 1264199)
Backed out changeset d3677ae4c8ec (bug 1264199)
Backed out changeset d08288654ec9 (bug 1264199)

MozReview-Commit-ID: HVtiBSOxf7t
2016-04-20 11:01:36 -07:00
Jean-Yves Avenard 29ce436a1b Bug 1264199: P5. Perform all downmixing operations in DecodedAudioDataSink. r=kinetik
Performing all audio processing operations in the same place, allows to simplify the code.

Additionally, if accessibility.monoaudio.enable is not set, we always upmix mono to stereo so that if the first audio stream seen was mono, we aren't stuck playing all future streams in mono.

MozReview-Commit-ID: 5yANN6PLFhX
2016-04-20 15:03:34 +10:00
Jean-Yves Avenard a0ed015dba Bug 1264199: P3. Attempt to minimize audio quality loss and unnecessary processing. r=kinetik
We attempt to avoid unnecessary resampling of 44.1kHz and 48kHz content, for all others we use cubeb's preferred sampling rate as final sampling rate.

MozReview-Commit-ID: 413qnsDFHzY
2016-04-20 15:03:20 +10:00
Carsten "Tomcat" Book e53741644d Backed out changeset 04751f3545ad (bug 1264199) 2016-04-18 14:22:05 +02:00
Carsten "Tomcat" Book fbf1d00b15 Backed out changeset f323c504b5a5 (bug 1264199) 2016-04-18 14:22:02 +02:00
Jean-Yves Avenard 7e4703cb30 Bug 1264199: P5. Perform all downmixing operations in DecodedAudioDataSink. r=kinetik
Performing all audio processing operations in the same place, allows to simplify the code.

Additionally, if accessibility.monoaudio.enable is not set, we always upmix mono to stereo so that if the first audio stream seen was mono, we aren't stuck playing all future streams in mono.

MozReview-Commit-ID: 5yANN6PLFhX

--HG--
extra : rebase_source : c789ba66fa168bc11064b2a329311d90b046c7fc
2016-04-13 20:25:50 +10:00
Jean-Yves Avenard 16c0bd7cd9 Bug 1264199: P3. Attempt to minimize audio quality loss and unnecessary processing. r=kinetik
We attempt to avoid unnecessary resampling of 44.1kHz and 48kHz content, for all others we use cubeb's preferred sampling rate as final sampling rate.

MozReview-Commit-ID: 413qnsDFHzY

--HG--
extra : rebase_source : 2c783be7f6d2ccaab88cee70372905ea92b690f4
2016-04-13 17:55:48 +10:00
Jean-Yves Avenard 698b349cd9 Bug 1262746: P2. Use AudioConvert in AudioStream to downmix samples. r=jwwang
MozReview-Commit-ID: 4jgKR8xw1dc

--HG--
extra : rebase_source : 68c2e488eac40edcd91416447ba85b823b3bd8ad
2016-04-08 17:37:31 +10:00
JW Wang 0cff6d9802 Bug 1239911 - Remove unused |mAudioChannel|. r=bechen.
MozReview-Commit-ID: F10HLXyHGKk
2016-04-01 07:41:28 +08:00
Randell Jesup a853e094df Bug 1221587: Update for API changes in cubeb r=padenot
--HG--
extra : commitid : C4GE8epQXOe
2016-01-21 11:51:36 -05:00
Paul Adenot 439679b676 Bug 1221587: allow getUserMedia to use full-duplex cubeb streams r=padenot
--HG--
extra : commitid : DQAIBehrpU3
2016-01-21 11:51:36 -05:00
Wes Kocher ef637b17e9 Backed out changeset 1c3afb2f433b (bug 1221587)
--HG--
extra : commitid : JErfAFCW3YJ
2016-01-21 17:28:28 -08:00
Wes Kocher 6a60db7718 Backed out changeset ff326b0cc099 (bug 1221587)
--HG--
extra : commitid : IaIBmzsd7rp
2016-01-21 17:28:14 -08:00
JW Wang a917c7b8c2 Bug 1240420. Part 2 - fix warnings of signed/unsigned comparison. r=kinetik. 2016-01-21 21:11:14 +08:00
JW Wang 541dacf22b Bug 1240420. Part 1 - move checks of mismatched sample rate or channel numbers to AudioStream. r=kinetik. 2016-01-21 21:11:14 +08:00
Randell Jesup 600178b7d6 Bug 1221587: Update for API changes in cubeb r=padenot
--HG--
extra : commitid : B6ZRzya3bL6
2016-01-21 11:51:36 -05:00
Paul Adenot 61fbf51469 Bug 1221587: allow getUserMedia to use full-duplex cubeb streams r=padenot
--HG--
extra : commitid : AH6pOM2E3J2
2016-01-21 11:51:36 -05:00
JW Wang 8a4f4317f1 Bug 1240417. Part 2 - remove unused code. r=kinetik. 2016-01-18 11:25:27 +08:00
JW Wang 31e6c6ee58 Bug 1240417. Part 1 - add a writer class to encapsulate pointer arithmetic. r=kinetik. 2016-01-18 11:24:06 +08:00
JW Wang ddee254421 Bug 948267. Part 1 - add the interface DataSource to implement pull model and remove members no longer useful in the pull model. r=kinetik. 2016-01-12 21:48:25 +08:00
Nathan Froyd ffeb7c7fe3 Bug 1229963 - use UniquePtr<T[]> instead of nsAutoArrayPtr<T> in dom/media/; r=cpearce 2015-12-02 18:07:59 -05:00
JW Wang 32d2d557d7 Bug 1139256 - remove the assertion in AudioStream::GetPositionInFramesUnlocked(). See bug 1139256 comment 4 for the detail. r=kinetik. 2015-11-02 21:26:12 +08:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nathan Froyd 583afa0965 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00