Change WAV extractor so it doesn't try to generate multiple buffers
to return more per readMultiple() transaction. Working around an
apparent buffer management problem when trying to do more than 1 buffer.
Bug: 128249893
Test: play wav file before/after
Output error messages on failure.
Test: CTS effects, dedicated test with bad sessionId
Bug: 128528126
Change-Id: Icdd306c30e8eb818b0a27d6463fa785bac2fb707
ftruncate(fd) would be useless if mWriter was NULL already.
Hence moved mWriter nullptr check before ftruncate(fd).
Bug: 128366317
Test: atest CtsMediaTestCases:android.media.cts.MediaRecorderTest
Change-Id: I46b8c4718bc8a90712b7ec0b54d8239106106018
Allow at most one effect chain with same sessionId on mPlaybackThreads.
Test: poc, CTS effect tests
Bug: 123237974
Change-Id: Ide46cd23b0a9f4295f0dca2fea23379a76b836ee
This CL allows to generate at build time the ProductStrategy structure
file to ensure it is aligned with audio policy engine configuration file.
Bug: 124767636
Test: build
Change-Id: I1afba9602482a898147c685d4a8b03fbe99c08b1
Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>
This module is for API check of java file generated from
media_profiles.xsd
Bug: 128380795
Test: m -j
Change-Id: Icb112074f7d8290b0fa037a96c7e097e5e73e3f1
Lazy loading of sound files can speed up camera startup more than 60ms,
it gives users a great experience. Many apps do not playSound when camera
open or they may use their own audio files. so we load audio files as needed.
Bug: 128432959
Test: install wechat app,open camera,use systrace to see the uiThread wait time.
Change-Id: I3b3697cf9d0d919b88276f6d8e7fdd84578f4fcd
Bug: 127693962
StagefrightRecorder receives next file descriptor in it's function setNextOutputFile() from
MediaRecorder.setNextOutputFile(). It duplicates the received file descriptor, but doesn't close
the duplicated one when done.
This CL fixes that issue by not duplicating it in StagefrighRecorder as it has to just pass it on
to Mpeg4Writer. Mpeg4Writer duplicates received file descriptor. It frees them during release.
Test: cts-tradefed run cts-dev -m CtsMediaTestCases --compatibility:module-arg
CtsMediaTestCases:include-annotation:android.platform.test.annotations.RequiresDevice
Change-Id: I24fc12bd957a2abdb8785625261c95da62952736
AudioOutputDescriptor::devices() returns a DeviceVector
by value. That means, the returned vector must be held
as long as we need its elements.
Added a FIXME to consider other devices because the
current code looks suspicious.
Bug: 128327759
Test: make
Change-Id: Ifd3a7c8faf89b2c4fc3400aac0060d0e9e673e73
This module is for API check of java file generated from
media_codecs.xsd
Bug: 80453829
Test: m -j
Change-Id: I07090d7faf00fa35600bab4db49bdaeac8969d97
Volume used to be managed per stream type.
VolumeGroup is a configurable way to manage volume affinity.
This CL allows to switch to VolumeGroup as new volume affinity management.
Bug: 124767636
Test: audio smoke tests
Change-Id: I71fc214f6db3158f0f05920cc3d700b29db1a4bc
Signed-off-by: François Gaffie <francois.gaffie@renault.com>
The ozoaudio integration mainly adds ozoaudiodec and ozoaudioenc under libstagefright/codecs.
However, it also modifies MPEG4Extractor.cpp, and the file is in Mainline media file scope.
Upstream the patch for reference.
Change-Id: I98da8e5ffaf7873b20d877520993a11cda07a618